diff options
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index 07a3ebd38d3..ff0e85d33ac 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -117,3 +117,12 @@ int no_default_function_template_args(); // CHECK-0X: has_default_function_template_args // CHECK-NO-0X: no_default_function_template_args +#if __has_feature(cxx_noexcept) +int has_noexcept(); +#else +int no_noexcept(); +#endif + +// CHECK-0X: has_noexcept +// CHECK-NO-0X: no_noexcept + |

