]> granicus.if.org Git - clang/commitdiff
sema no longer explodes, yay!
authorChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 00:32:04 +0000 (00:32 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 00:32:04 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64707 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/unused-expr.c

index b14daa702dd632df8a84482ae2f2c454d621cdde..4cc829be046d790ab160ea036142ec7c5fd66a80 100644 (file)
@@ -19,9 +19,8 @@ void bar(volatile int *VP, int *P, int A,
   P[4];                // expected-warning {{expression result unused}}
   VP[4];               // no warning.
 
-  // FIXME: SEMA explodes on these.
-  //__real__ C;
-  //__real__ VC;
+  __real__ C;          // expected-warning {{expression result unused}}
+  __real__ VC;
 }
 
 extern void t1();