diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/Parser/cxx11-stmt-attributes.cpp | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/Parser/cxx11-stmt-attributes.cpp')
-rw-r--r-- | test/Parser/cxx11-stmt-attributes.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/cxx11-stmt-attributes.cpp b/test/Parser/cxx11-stmt-attributes.cpp index 2f727a25bd7e..9374b58b1f24 100644 --- a/test/Parser/cxx11-stmt-attributes.cpp +++ b/test/Parser/cxx11-stmt-attributes.cpp @@ -76,4 +76,9 @@ void foo(int i) { } [[carries_dependency]] return; // expected-error {{'carries_dependency' attribute cannot be applied to a statement}} + + { + [[ ]] // expected-error {{an attribute list cannot appear here}} +#pragma STDC FP_CONTRACT ON // expected-error {{can only appear at file scope or at the start of a compound statement}} + } } |