diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Parser/cxx0x-attributes.cpp | 3 | ||||
-rw-r--r-- | test/SemaCXX/cxx11-ast-print.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/Parser/cxx0x-attributes.cpp b/test/Parser/cxx0x-attributes.cpp index 4e7ac16cc5..5e4e388a26 100644 --- a/test/Parser/cxx0x-attributes.cpp +++ b/test/Parser/cxx0x-attributes.cpp @@ -279,4 +279,5 @@ int v4[2][[gnu::unused]]; // expected-warning {{attribute 'unused' ignored}} int v5()[[gnu::unused]]; // expected-warning {{attribute 'unused' ignored}} [[attribute_declaration]]; // expected-warning {{unknown attribute 'attribute_declaration' ignored}} -[[noreturn]]; // expected-error {{'noreturn' attribute cannot be used in an attribute declaration}} +[[noreturn]]; // expected-error {{'noreturn' attribute only applies to functions and methods}} +[[carries_dependency]]; // expected-error {{'carries_dependency' attribute only applies to functions, methods, and parameters}} diff --git a/test/SemaCXX/cxx11-ast-print.cpp b/test/SemaCXX/cxx11-ast-print.cpp index 66ff0f064a..8e9480476c 100644 --- a/test/SemaCXX/cxx11-ast-print.cpp +++ b/test/SemaCXX/cxx11-ast-print.cpp @@ -38,3 +38,5 @@ const char *p8 = 4.9_quux; const char *p9 = 0x42e3F_fritz; // CHECK: const char *p10 = 3.300e+15_fritz; const char *p10 = 3.300e+15_fritz; +// CHECK: ; +; |