[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / Analysis / Issue56873.cpp
blob081fc288c6bca111ef5dc6cd9eedf8ccfeffa042
1 // RUN: %clang_analyze_cc1 -analyzer-checker=debug.ExprInspection -verify %s
3 void clang_analyzer_warnIfReached();
5 struct S {
6 };
8 void Issue56873_1() {
9 int n;
11 // This line used to crash
12 S *arr = new S[n];
14 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}}
17 void Issue56873_2() {
18 int n;
20 // This line used to crash
21 int *arr = new int[n];
23 clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}}