C++: fix test to enable C++11 support in frontend

This commit is contained in:
Nick Rolfe
2018-08-15 11:43:31 +01:00
parent 59ddda881e
commit dd169d1b21
2 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
// semmle-extractor-options: --edg --clang --edg --c++11 --edg --nullptr
static int has_nullptr_f = __has_feature(cxx_nullptr);
static int has_nullptr_e = __has_extension(cxx_nullptr);
// semmle-extractor-options: --edg --clang --edg --c++ --edg --nullptr

View File

@@ -2,8 +2,8 @@
| | gp_offset | <no initialiser value> |
| | overflow_arg_area | <no initialiser value> |
| | reg_save_area | <no initialiser value> |
| extended.c | has_nullptr_e | 1 |
| extended.c | has_nullptr_f | 1 |
| extended.cpp | has_nullptr_e | 1 |
| extended.cpp | has_nullptr_f | 1 |
| gcc492.c | has_include | 1 |
| gcc492.c | has_macro_include | 1 |
| gcc492.c | has_missing_include | 0 |