mirror of
https://github.com/github/codeql.git
synced 2026-05-11 01:39:28 +02:00
29 lines
461 B
C++
29 lines
461 B
C++
void func_with_default_arg(const int n = 0) {
|
|
if(n <= 10) {}
|
|
}
|
|
|
|
struct A {
|
|
const int int_member = 0;
|
|
A(int n) : int_member(n) {
|
|
if(int_member <= 10) {
|
|
|
|
}
|
|
}
|
|
};
|
|
|
|
struct B {
|
|
B(const int n = 0) {
|
|
if(n <= 10) {}
|
|
}
|
|
};
|
|
|
|
const volatile int volatile_const_global = 0;
|
|
|
|
void test1() {
|
|
func_with_default_arg(100);
|
|
|
|
A a(100);
|
|
if(a.int_member <= 10) {}
|
|
|
|
if(volatile_const_global <= 10) {}
|
|
} |