Files
codeql/cpp/ql/test/library-tests/syntax-zoo/stmt_expr.cpp
2019-08-06 14:10:25 +02:00

35 lines
341 B
C++

namespace stmtexpr {
class C {
public:
C(int x);
~C();
};
void f(int b) {
int i;
if (({
C c(1);
b;
}))
2;
else
;
}
void g(int b) {
void *ptr;
int i;
lab:
ptr = &&lab;
goto *({
C c(3);
ptr;
});
}
}