mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Conceptually the test that comprises the whole of `syntax-zoo` forms one single binary. To this binary ODR applies. There were two class definitions `Foo` in `syntax-zoo`, violating ODR. Rename those classes to have different names.
8 lines
90 B
C++
8 lines
90 B
C++
struct ArrayDelete {
|
|
~ArrayDelete();
|
|
};
|
|
|
|
void f() {
|
|
delete[] (ArrayDelete*)nullptr;
|
|
}
|