Files
codeql/cpp/ql/test/library-tests/literal_locations/literal_locations.c
2018-08-02 17:53:23 +01:00

30 lines
360 B
C

// Compilable with:
// gcc -c literal_locations.c
// clang -c literal_locations.c
typedef struct {
int i;
int j;
} intPair;
void f(void) {
int i = 55555;
intPair pairs[] = {
{11111, 22222},
{33333, 44444}
};
int j = 55555;
switch (i) {
case 5 ... 8:
break;
}
if (i == -1)
{
}
}