[OpenACC] Treat 'delete' as a valid clause during parsing in C++ mode
[llvm-project.git] / clang / test / Tooling / clang-check-analyze-save-temps.cpp
blob768f2580c2dba02b53aaa7cffda93e4a7c4af3ca
1 // Check whether output generation options (like -save-temps) will not affect
2 // the execution of the analyzer.
4 // RUN: clang-check -analyze %s -- -save-temps -c -Xclang -verify
6 // Check whether redundant -fsyntax-only options will affect the execution of
7 // the analyzer.
9 // RUN: clang-check -analyze %s -- \
10 // RUN: -fsyntax-only -c -fsyntax-only -Xclang -verify 2>&1 | \
11 // RUN: FileCheck %s --allow-empty
13 // CHECK-NOT: argument unused during compilation: '--analyze'
15 void a(int *x) {
16 if (x) {
18 *x = 47; // expected-warning {{Dereference of null pointer}}