diff options
author | Charles Li <charles_li@playstation.sony.com> | 2016-04-13 20:00:45 +0000 |
---|---|---|
committer | Charles Li <charles_li@playstation.sony.com> | 2016-04-13 20:00:45 +0000 |
commit | 64a1a81e76b48ade6773887323476b2a6fb72c38 (patch) | |
tree | 4a74019258a4996b2df26cdc201e6a8eb9d27e1a /clang/test/CodeGenCXX/debug-info-static-member.cpp | |
parent | c0bef99bb03cbcef5e0700bfdbed6e82970c8416 (diff) | |
download | bcm5719-llvm-64a1a81e76b48ade6773887323476b2a6fb72c38.tar.gz bcm5719-llvm-64a1a81e76b48ade6773887323476b2a6fb72c38.zip |
Lit C++11 Compatibility Patch #7
13 tests have been updated for C++11 compatibility.
Differential Revision: http://reviews.llvm.org/D19068
llvm-svn: 266239
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-static-member.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-static-member.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-static-member.cpp b/clang/test/CodeGenCXX/debug-info-static-member.cpp index 8e5207d5c30..81ab203418b 100644 --- a/clang/test/CodeGenCXX/debug-info-static-member.cpp +++ b/clang/test/CodeGenCXX/debug-info-static-member.cpp @@ -1,4 +1,6 @@ // RUN: %clangxx -target x86_64-unknown-unknown -g %s -emit-llvm -S -o - | FileCheck %s +// RUN: %clangxx -target x86_64-unknown-unknown -g -std=c++98 %s -emit-llvm -S -o - | FileCheck %s +// RUN: %clangxx -target x86_64-unknown-unknown -g -std=c++11 %s -emit-llvm -S -o - | FileCheck %s // PR14471 enum X { @@ -10,7 +12,11 @@ class C const static bool const_a = true; protected: static int b; +#if __cplusplus >= 201103L + constexpr static float const_b = 3.14; +#else const static float const_b = 3.14; +#endif public: static int c; const static int const_c = 18; |