diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-01 01:19:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-01 01:19:34 +0000 |
commit | 3c469769a25a0e1dba220fcc65086575bd1e9472 (patch) | |
tree | 89da72d751ebb0bd381466c31afbd45b673cf506 /clang/test/Lexer/has_feature_cxx0x.cpp | |
parent | d73f3ddb441b305dd41f4da608df3e899d4d9672 (diff) | |
download | bcm5719-llvm-3c469769a25a0e1dba220fcc65086575bd1e9472.tar.gz bcm5719-llvm-3c469769a25a0e1dba220fcc65086575bd1e9472.zip |
Add __has_feature(cxx_defaulted_functions) for querying "defaulted
functions", from Michel Morin!
llvm-svn: 143411
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
-rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index f2b4576b57e..eff9cfb892f 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -79,6 +79,14 @@ int no_deleted_functions(); // CHECK-0X: has_deleted_functions // CHECK-NO-0X: no_deleted_functions +#if __has_feature(cxx_defaulted_functions) +int has_defaulted_functions(); +#else +int no_defaulted_functions(); +#endif + +// CHECK-0X: has_defaulted_functions +// CHECK-NO-0X: no_defaulted_functions #if __has_feature(cxx_rvalue_references) int has_rvalue_references(); |