[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / analysis-after-multiple-dtors.cpp
bloba8f6d38fbd1bbfc3efd0e3df5c42bcba9c4d6f7d
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 #include "Inputs/system-header-simulator-cxx.h"
5 struct Test {
6 Test() {}
7 ~Test();
8 };
10 int foo() {
11 struct a {
12 // The dtor invocation of 'b' and 'c' used to create
13 // a loop in the egraph and the analysis stopped after
14 // this point.
15 Test b, c;
16 } d;
17 return 1;
20 int main() {
21 if (foo()) {
24 int x;
25 int y = x;
26 // expected-warning@-1{{Assigned value is garbage or undefined}}
27 (void)y;