mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
22
cpp/ql/test/library-tests/specifiers/specifiers.cpp
Normal file
22
cpp/ql/test/library-tests/specifiers/specifiers.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
extern int i;
|
||||
extern int i;
|
||||
extern int i;
|
||||
|
||||
const int c = 7;
|
||||
const double pi = 3.1415926535897932385;
|
||||
|
||||
unsigned a;
|
||||
|
||||
unsigned int b;
|
||||
int b2;
|
||||
|
||||
int * const int_pointer1 = &b2;
|
||||
const int * int_pointer2 = &c; // Note: int_pointer2 is not const itself
|
||||
const int * const int_pointer3 = &c;
|
||||
|
||||
typedef char* Pchar;
|
||||
|
||||
const char* kings[] = { "Antigonus", "Seleucus", "Ptolemy" };
|
||||
|
||||
int* p, q;
|
||||
int v[10], *pv;
|
||||
Reference in New Issue
Block a user