mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: Fix database inconsistency issue from ODR violation.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
template<typename T> void range(T);
|
||||
#include "test_util.h"
|
||||
|
||||
struct List {
|
||||
struct List* next;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
template<typename T> void range(T value);
|
||||
#include "test_util.h"
|
||||
int f1(int x, int y) {
|
||||
if (x < 500) {
|
||||
if (x > 400) {
|
||||
|
||||
1
cpp/ql/test/library-tests/ir/range-analysis/test_util.h
Normal file
1
cpp/ql/test/library-tests/ir/range-analysis/test_util.h
Normal file
@@ -0,0 +1 @@
|
||||
template<typename T> void range(T value);
|
||||
Reference in New Issue
Block a user