diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-28 04:37:56 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-09-28 04:37:56 +0000 |
| commit | b438e62aba80a3beb76f62bc3cb421191d018173 (patch) | |
| tree | f68e4fa338a929e0d9243d972451468bee64f724 /clang/test/Lexer | |
| parent | 75e3f695fb5b3852a3b6d4ea5fa4546c82a5cfb8 (diff) | |
| download | bcm5719-llvm-b438e62aba80a3beb76f62bc3cb421191d018173.tar.gz bcm5719-llvm-b438e62aba80a3beb76f62bc3cb421191d018173.zip | |
Mark lambda init-captures as complete.
llvm-svn: 191607
Diffstat (limited to 'clang/test/Lexer')
| -rw-r--r-- | clang/test/Lexer/has_extension_cxx.cpp | 9 | ||||
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/clang/test/Lexer/has_extension_cxx.cpp b/clang/test/Lexer/has_extension_cxx.cpp index 6646a5ab581..d3483df94c5 100644 --- a/clang/test/Lexer/has_extension_cxx.cpp +++ b/clang/test/Lexer/has_extension_cxx.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -std=c++98 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -std=c++11 -E %s -o - | FileCheck %s --check-prefix=CHECK11 // CHECK: c_static_assert #if __has_extension(c_static_assert) @@ -54,3 +55,9 @@ int has_binary_literals(); #if __has_extension(cxx_variable_templates) int has_variable_templates(); #endif + +// CHECK-NOT: has_init_captures +// CHECK11: has_init_captures +#if __has_extension(cxx_init_captures) +int has_init_captures(); +#endif diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index 821b5b5f570..b2fe842bd67 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -386,3 +386,13 @@ int no_variable_templates(); // CHECK-1Y: has_variable_templates // CHECK-11: no_variable_templates // CHECK-NO-11: no_variable_templates + +#if __has_feature(cxx_init_captures) +int has_init_captures(); +#else +int no_init_captures(); +#endif + +// CHECK-1Y: has_init_captures +// CHECK-11: no_init_captures +// CHECK-NO-11: no_init_captures |

