From: Chandler Carruth Date: Tue, 20 Dec 2011 01:45:15 +0000 (+0000) Subject: Remove some extraneous carriage returns from these files. One of the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c7a925d93ff4a7b753f4fe0ba097abf82ba68f4;p=clang Remove some extraneous carriage returns from these files. One of the Windows subversion clients isn't setup to default to eol:native again... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146952 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/attr-declspec-ignored.c b/test/Sema/attr-declspec-ignored.c index e1bce4726e..6fd35c0bd7 100644 --- a/test/Sema/attr-declspec-ignored.c +++ b/test/Sema/attr-declspec-ignored.c @@ -1,12 +1,12 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only - -__attribute__((visibility("hidden"))) __attribute__((aligned)) struct A; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ -// expected-warning{{attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration}} -__attribute__((visibility("hidden"))) __attribute__((aligned)) union B; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ -// expected-warning{{attribute 'aligned' is ignored, place it after "union" to apply attribute to type declaration}} -__attribute__((visibility("hidden"))) __attribute__((aligned)) enum C {C}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ -// expected-warning{{attribute 'aligned' is ignored, place it after "enum" to apply attribute to type declaration}} - -__attribute__((visibility("hidden"))) __attribute__((aligned)) struct D {} d; -__attribute__((visibility("hidden"))) __attribute__((aligned)) union E {} e; -__attribute__((visibility("hidden"))) __attribute__((aligned)) enum F {F} f; +// RUN: %clang_cc1 %s -verify -fsyntax-only + +__attribute__((visibility("hidden"))) __attribute__((aligned)) struct A; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ +// expected-warning{{attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration}} +__attribute__((visibility("hidden"))) __attribute__((aligned)) union B; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ +// expected-warning{{attribute 'aligned' is ignored, place it after "union" to apply attribute to type declaration}} +__attribute__((visibility("hidden"))) __attribute__((aligned)) enum C {C}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ +// expected-warning{{attribute 'aligned' is ignored, place it after "enum" to apply attribute to type declaration}} + +__attribute__((visibility("hidden"))) __attribute__((aligned)) struct D {} d; +__attribute__((visibility("hidden"))) __attribute__((aligned)) union E {} e; +__attribute__((visibility("hidden"))) __attribute__((aligned)) enum F {F} f; diff --git a/test/SemaCXX/attr-declspec-ignored.cpp b/test/SemaCXX/attr-declspec-ignored.cpp index c6745c4e64..0503750da1 100644 --- a/test/SemaCXX/attr-declspec-ignored.cpp +++ b/test/SemaCXX/attr-declspec-ignored.cpp @@ -1,19 +1,19 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only - -namespace test1 { - __attribute__((visibility("hidden"))) __attribute__((aligned)) class A; // expected-warning{{attribute 'visibility' is ignored, place it after "class" to apply attribute to type declaration}} \ - // expected-warning{{attribute 'aligned' is ignored, place it after "class" to apply attribute to type declaration}} - __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ - // expected-warning{{attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration}} - __attribute__((visibility("hidden"))) __attribute__((aligned)) union C; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ - // expected-warning{{attribute 'aligned' is ignored, place it after "union" to apply attribute to type declaration}} - __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ - // expected-warning{{attribute 'aligned' is ignored, place it after "enum" to apply attribute to type declaration}} -} - -namespace test2 { - __attribute__((visibility("hidden"))) __attribute__((aligned)) class A {} a; - __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B {} b; - __attribute__((visibility("hidden"))) __attribute__((aligned)) union C {} c; - __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D} d; -} +// RUN: %clang_cc1 %s -verify -fsyntax-only + +namespace test1 { + __attribute__((visibility("hidden"))) __attribute__((aligned)) class A; // expected-warning{{attribute 'visibility' is ignored, place it after "class" to apply attribute to type declaration}} \ + // expected-warning{{attribute 'aligned' is ignored, place it after "class" to apply attribute to type declaration}} + __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B; // expected-warning{{attribute 'visibility' is ignored, place it after "struct" to apply attribute to type declaration}} \ + // expected-warning{{attribute 'aligned' is ignored, place it after "struct" to apply attribute to type declaration}} + __attribute__((visibility("hidden"))) __attribute__((aligned)) union C; // expected-warning{{attribute 'visibility' is ignored, place it after "union" to apply attribute to type declaration}} \ + // expected-warning{{attribute 'aligned' is ignored, place it after "union" to apply attribute to type declaration}} + __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D}; // expected-warning{{attribute 'visibility' is ignored, place it after "enum" to apply attribute to type declaration}} \ + // expected-warning{{attribute 'aligned' is ignored, place it after "enum" to apply attribute to type declaration}} +} + +namespace test2 { + __attribute__((visibility("hidden"))) __attribute__((aligned)) class A {} a; + __attribute__((visibility("hidden"))) __attribute__((aligned)) struct B {} b; + __attribute__((visibility("hidden"))) __attribute__((aligned)) union C {} c; + __attribute__((visibility("hidden"))) __attribute__((aligned)) enum D {D} d; +}