Skip to content

Commit dd169d1

Browse files
committed
C++: fix test to enable C++11 support in frontend
1 parent 59ddda8 commit dd169d1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cpp/ql/test/library-tests/clang_builtin_macros/extended.c renamed to cpp/ql/test/library-tests/clang_builtin_macros/extended.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// semmle-extractor-options: --edg --clang --edg --c++11 --edg --nullptr
2+
13
static int has_nullptr_f = __has_feature(cxx_nullptr);
24
static int has_nullptr_e = __has_extension(cxx_nullptr);
3-
// semmle-extractor-options: --edg --clang --edg --c++ --edg --nullptr

cpp/ql/test/library-tests/clang_builtin_macros/values.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
| | gp_offset | <no initialiser value> |
33
| | overflow_arg_area | <no initialiser value> |
44
| | reg_save_area | <no initialiser value> |
5-
| extended.c | has_nullptr_e | 1 |
6-
| extended.c | has_nullptr_f | 1 |
5+
| extended.cpp | has_nullptr_e | 1 |
6+
| extended.cpp | has_nullptr_f | 1 |
77
| gcc492.c | has_include | 1 |
88
| gcc492.c | has_macro_include | 1 |
99
| gcc492.c | has_missing_include | 0 |

0 commit comments

Comments
 (0)