From b6448943ba1fe01be7cd658437dacae9d2fee8a8 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 6 Oct 2010 06:50:05 +0000 Subject: [PATCH] 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 --- test/Lexer/pragma-message.c | 28 +++++++++++----------- 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[]; +};