[cfe-commits] r57067 - /cfe/trunk/test/Parser/pragma-pack.c
Chris Lattner
sabre at nondot.org
Sat Oct 4 12:38:16 PDT 2008
Author: lattner
Date: Sat Oct 4 14:38:15 2008
New Revision: 57067
URL: http://llvm.org/viewvc/llvm-project?rev=57067&view=rev
Log:
Move the expected-warning lines to a place that clang -verify will pick them
up. Speculatularly hacktastic, but strangely beautiful?
Daniel, lines 20/21 are rejected, please investigate.
Modified:
cfe/trunk/test/Parser/pragma-pack.c
Modified: cfe/trunk/test/Parser/pragma-pack.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pragma-pack.c?rev=57067&r1=57066&r2=57067&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pragma-pack.c (original)
+++ cfe/trunk/test/Parser/pragma-pack.c Sat Oct 4 14:38:15 2008
@@ -1,30 +1,33 @@
// RUN: clang -fsyntax-only -verify %s
// XFAIL
-#pragma pack 10 // expected-warning {{missing '(' after '#pragma pack'}}
+// Note that this puts the expected lines before the directives to work around
+// limitations in the -verify mode.
+
+/* expected-warning {{missing '(' after '#pragma pack'}}*/ #pragma pack 10
#pragma pack()
#pragma pack(8)
-#pragma pack(hello) // expected-warning {{unknown action for '#pragma pack'}}
+/*expected-warning {{unknown action for '#pragma pack'}}*/ #pragma pack(hello)
#pragma pack(push)
#pragma pack(pop)
-#pragma pack(push,) // expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}
-#pragma pack(push,) // expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}
-#pragma pack(pop,) // expected-warning {{malformed '#pragma pack', expected '#pragma pack(pop}}
+/* expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}*/ #pragma pack(push,)
+/* expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}*/ #pragma pack(push,)
+/* expected-warning {{malformed '#pragma pack', expected '#pragma pack(pop}}*/ #pragma pack(pop,)
#pragma pack(push,i)
-#pragma pack(push,i, // expected-warning {{malformed '#pragma pack', expected}}
-#pragma pack(push,i,) // expected-warning {{malformed '#pragma pack', expected}}
+/* expected-warning {{malformed '#pragma pack', expected}}*/ #pragma pack(push,i,
+/* expected-warning {{malformed '#pragma pack', expected}}*/ #pragma pack(push,i,)
#pragma pack(push,8)
-#pragma pack(push,8, // expected-warning {{malformed '#pragma pack', expected}}
-#pragma pack(push,8,help) // expected-warning {{malformed '#pragma pack', expected}}
-#pragma pack(push,8,) // expected-warning {{missing ')' after '#pragma pack'}}
-#pragma pack(push,i,8 // expected-warning {{missing ')' after '#pragma pack'}}
+/* expected-warning {{malformed '#pragma pack', expected}}*/ #pragma pack(push,8,
+/* expected-warning {{malformed '#pragma pack', expected}}*/ #pragma pack(push,8,help)
+/* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,8,)
+/* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push,i,8
#pragma pack(push,i,8)
-#pragma pack(push // expected-warning {{missing ')' after '#pragma pack'}}
+/* expected-warning {{missing ')' after '#pragma pack'}}*/ #pragma pack(push
_Pragma("pack(push)")
-_Pragma("pack(push,)") // expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}
+/* expected-warning {{malformed '#pragma pack', expected '#pragma pack(push}}*/ _Pragma("pack(push,)")
More information about the cfe-commits
mailing list