Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Analysis / yaccignore.c
blob87c012d9bbdffa4caf1616379bf181d240d3f3cc
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify -DEXPECT_NO_DIAGNOSTICS %s
2 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify=conditional %s \
3 // RUN: -analyzer-config ignore-bison-generated-files=false
5 #ifdef EXPECT_NO_DIAGNOSTICS
6 // expected-no-diagnostics
7 #endif
9 /* A Bison parser, made by GNU Bison 1.875. */
11 void clang_analyzer_warnIfReached(void);
12 void foo(void) {
13 clang_analyzer_warnIfReached(); // conditional-warning {{REACHABLE}}