зеркало из https://github.com/microsoft/clang.git
Remove hard CRLF end-of-line markers from two files. These should be added
automatically when syncing due to the auto-props selecting svn:eol-style of 'native'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
a0f15b0848
Коммит
b6448943ba
|
@ -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}}
|
||||
|
|
|
@ -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[];
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче