Skip to content

Commit 0796184

Browse files
committed
C++: Specify GNU version on min/max test
The `<?` and `>?` operators where removed in g++ in version 4.3, and the latest version of our our frontend enforces this through a version check. Hence, to keep the test working, we not to explicitly specify a version.
1 parent 164cfaf commit 0796184

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| test.cpp:3:13:3:13 | i |
2-
| test.cpp:3:13:3:18 | ... <? ... |
3-
| test.cpp:3:18:3:18 | j |
41
| test.cpp:4:13:4:13 | i |
5-
| test.cpp:4:13:4:18 | ... >? ... |
2+
| test.cpp:4:13:4:18 | ... <? ... |
63
| test.cpp:4:18:4:18 | j |
4+
| test.cpp:5:13:5:13 | i |
5+
| test.cpp:5:13:5:18 | ... >? ... |
6+
| test.cpp:5:18:5:18 | j |

cpp/ql/test/library-tests/exprs/min_max/test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// semmle-extractor-options: --gnu_version 40200
12

23
void f(int i, int j) {
34
int k = i <? j;

0 commit comments

Comments
 (0)