mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
399 B
C
17 lines
399 B
C
// define the preprocessor macro `MYTYPE` before including this file.
|
|
|
|
typedef MYTYPE mytype_t;
|
|
|
|
inline MYTYPE myfun() { return 0; }
|
|
|
|
inline int intfun() {
|
|
MYTYPE localVar = sizeof(MYTYPE);
|
|
return localVar;
|
|
}
|
|
|
|
extern MYTYPE myvar;
|
|
|
|
// This creates a separate variable named `intvar` for each file that includes
|
|
// this header. That's definitely bad practice.
|
|
static int intvar = sizeof(MYTYPE);
|