diff options
-rw-r--r-- | test/Lexer/pragma-message.c | 28 | ||||
-rw-r--r-- | test/Sema/MicrosoftExtensions.c | 42 |
2 files changed, 35 insertions, 35 deletions
diff --git a/test/Lexer/pragma-message.c b/test/Lexer/pragma-message.c index 423e6d065a..710568cc2d 100644 --- a/test/Lexer/pragma-message.c +++ b/test/Lexer/pragma-message.c @@ -1,14 +1,14 @@ -/* Test pragma message directive from
- http://msdn.microsoft.com/en-us/library/x7dkzch2.aspx */
-
-// message: Sends a string literal to the standard output without terminating
-// the compilation.
-// #pragma message(messagestring)
-// OR
-// #pragma message messagestring
-//
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-#define STRING2(x) #x
-#define STRING(x) STRING2(x)
-#pragma message(":O I'm a message! " STRING(__LINE__)) // expected-warning {{:O I'm a message! 13}}
-#pragma message ":O gcc accepts this! " STRING(__LINE__) // expected-warning {{:O gcc accepts this! 14}}
+/* Test pragma message directive from + http://msdn.microsoft.com/en-us/library/x7dkzch2.aspx */ + +// message: Sends a string literal to the standard output without terminating +// the compilation. +// #pragma message(messagestring) +// OR +// #pragma message messagestring +// +// RUN: %clang_cc1 -fsyntax-only -verify %s +#define STRING2(x) #x +#define STRING(x) STRING2(x) +#pragma message(":O I'm a message! " STRING(__LINE__)) // expected-warning {{:O I'm a message! 13}} +#pragma message ":O gcc accepts this! " STRING(__LINE__) // expected-warning {{:O gcc accepts this! 14}} diff --git a/test/Sema/MicrosoftExtensions.c b/test/Sema/MicrosoftExtensions.c index 5a434aab26..96c5639810 100644 --- a/test/Sema/MicrosoftExtensions.c +++ b/test/Sema/MicrosoftExtensions.c @@ -1,21 +1,21 @@ -// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
-
-
-struct A
-{
- int a[]; /* expected-warning {{flexible array member 'a' in otherwise empty struct is a Microsoft extension}} */
-};
-
-struct C {
- int l;
- union {
- int c1[]; /* expected-warning {{flexible array member 'c1' in a union is a Microsoft extension}} */
- char c2[]; /* expected-warning {{flexible array member 'c2' in a union is a Microsoft extension}} */
- };
-};
-
-
-struct D {
- int l;
- int D[];
-};
+// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions + + +struct A +{ + int a[]; /* expected-warning {{flexible array member 'a' in otherwise empty struct is a Microsoft extension}} */ +}; + +struct C { + int l; + union { + int c1[]; /* expected-warning {{flexible array member 'c1' in a union is a Microsoft extension}} */ + char c2[]; /* expected-warning {{flexible array member 'c2' in a union is a Microsoft extension}} */ + }; +}; + + +struct D { + int l; + int D[]; +}; |