diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-11-20 12:59:14 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-11-20 12:59:14 +0000 |
commit | f0934fa708a60700b73001cecba2f18157fa429f (patch) | |
tree | 2be665400dd547e5fc3f2f3d77eb260af21ba148 /clang/test/Preprocessor | |
parent | 71526a3eda6757c4a1bdb36b294a2f548c088810 (diff) | |
download | bcm5719-llvm-f0934fa708a60700b73001cecba2f18157fa429f.tar.gz bcm5719-llvm-f0934fa708a60700b73001cecba2f18157fa429f.zip |
Convert CR+LF -> LF in a test file
llvm-svn: 222429
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r-- | clang/test/Preprocessor/has_attribute.cpp | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/clang/test/Preprocessor/has_attribute.cpp b/clang/test/Preprocessor/has_attribute.cpp index a077215a8a6..75f72c7535b 100644 --- a/clang/test/Preprocessor/has_attribute.cpp +++ b/clang/test/Preprocessor/has_attribute.cpp @@ -1,53 +1,53 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -E %s -o - | FileCheck %s
-
-// CHECK: has_cxx11_carries_dep
-#if __has_cpp_attribute(carries_dependency)
- int has_cxx11_carries_dep();
-#endif
-
-// CHECK: has_clang_fallthrough_1
-#if __has_cpp_attribute(clang::fallthrough)
- int has_clang_fallthrough_1();
-#endif
-
-// CHECK: does_not_have_selectany
-#if !__has_cpp_attribute(selectany)
- int does_not_have_selectany();
-#endif
-
-// The attribute name can be bracketed with double underscores.
-// CHECK: has_clang_fallthrough_2
-#if __has_cpp_attribute(clang::__fallthrough__)
- int has_clang_fallthrough_2();
-#endif
-
-// The scope cannot be bracketed with double underscores.
-// CHECK: does_not_have___clang___fallthrough
-#if !__has_cpp_attribute(__clang__::fallthrough)
- int does_not_have___clang___fallthrough();
-#endif
-
-// Test that C++11, target-specific attributes behave properly.
-
-// CHECK: does_not_have_mips16
-#if !__has_cpp_attribute(gnu::mips16)
- int does_not_have_mips16();
-#endif
-
-// Test that the version numbers of attributes listed in SD-6 are supported
-// correctly.
-
-// CHECK: has_cxx11_carries_dep_vers
-#if __has_cpp_attribute(carries_dependency) == 200809
- int has_cxx11_carries_dep_vers();
-#endif
-
-// CHECK: has_cxx11_noreturn_vers
-#if __has_cpp_attribute(noreturn) == 200809
- int has_cxx11_noreturn_vers();
-#endif
-
-// CHECK: has_cxx14_deprecated_vers
-#if __has_cpp_attribute(deprecated) == 201309
- int has_cxx14_deprecated_vers();
-#endif
+// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -E %s -o - | FileCheck %s + +// CHECK: has_cxx11_carries_dep +#if __has_cpp_attribute(carries_dependency) + int has_cxx11_carries_dep(); +#endif + +// CHECK: has_clang_fallthrough_1 +#if __has_cpp_attribute(clang::fallthrough) + int has_clang_fallthrough_1(); +#endif + +// CHECK: does_not_have_selectany +#if !__has_cpp_attribute(selectany) + int does_not_have_selectany(); +#endif + +// The attribute name can be bracketed with double underscores. +// CHECK: has_clang_fallthrough_2 +#if __has_cpp_attribute(clang::__fallthrough__) + int has_clang_fallthrough_2(); +#endif + +// The scope cannot be bracketed with double underscores. +// CHECK: does_not_have___clang___fallthrough +#if !__has_cpp_attribute(__clang__::fallthrough) + int does_not_have___clang___fallthrough(); +#endif + +// Test that C++11, target-specific attributes behave properly. + +// CHECK: does_not_have_mips16 +#if !__has_cpp_attribute(gnu::mips16) + int does_not_have_mips16(); +#endif + +// Test that the version numbers of attributes listed in SD-6 are supported +// correctly. + +// CHECK: has_cxx11_carries_dep_vers +#if __has_cpp_attribute(carries_dependency) == 200809 + int has_cxx11_carries_dep_vers(); +#endif + +// CHECK: has_cxx11_noreturn_vers +#if __has_cpp_attribute(noreturn) == 200809 + int has_cxx11_noreturn_vers(); +#endif + +// CHECK: has_cxx14_deprecated_vers +#if __has_cpp_attribute(deprecated) == 201309 + int has_cxx14_deprecated_vers(); +#endif |