diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-13 02:02:51 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-13 02:02:51 +0000 |
| commit | 8ca78a16f4a5bdc7e25b607d1063ce992ac51540 (patch) | |
| tree | 920778dd4b850e614d683cfa119c4e267702f422 /clang/test/SemaCXX/attr-cxx0x.cpp | |
| parent | 2eabf78eb6affeece016b71a2df152c7aa38db4d (diff) | |
| download | bcm5719-llvm-8ca78a16f4a5bdc7e25b607d1063ce992ac51540.tar.gz bcm5719-llvm-8ca78a16f4a5bdc7e25b607d1063ce992ac51540.zip | |
Add -Wdeprecated warnings and fixits for things deprecated in C++11:
- 'register' storage class
- dynamic exception specifications
Only the former check is enabled by default for now (the latter might be quite noisy).
llvm-svn: 183881
Diffstat (limited to 'clang/test/SemaCXX/attr-cxx0x.cpp')
| -rw-r--r-- | clang/test/SemaCXX/attr-cxx0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/attr-cxx0x.cpp b/clang/test/SemaCXX/attr-cxx0x.cpp index e9276cd2d9e..fb46af40359 100644 --- a/clang/test/SemaCXX/attr-cxx0x.cpp +++ b/clang/test/SemaCXX/attr-cxx0x.cpp @@ -12,7 +12,7 @@ struct align_member { }; void f(alignas(1) char c) { // expected-error {{'alignas' attribute cannot be applied to a function parameter}} - alignas(1) register char k; // expected-error {{'alignas' attribute cannot be applied to a variable with 'register' storage class}} + alignas(1) register char k; // expected-error {{'alignas' attribute cannot be applied to a variable with 'register' storage class}} expected-warning {{deprecated}} try { } catch (alignas(4) int n) { // expected-error {{'alignas' attribute cannot be applied to a 'catch' variable}} } |

