brintos

brintos / llvm-project-archived public Read only

0
0
Text · 379 B · 72e1a20 Raw
8 lines · cpp
1// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s2// RUN: clang-check -analyze "%s" -- -c -flto -Wa,--noexecstack 2>&1 | FileCheck %s3// RUN: clang-check -analyze "%s" -- -c -no-integrated-as -flto=thin 2>&1 | FileCheck %s4// RUN: clang-check -analyze "%s" -- -c -flto=full 2>&1 | FileCheck %s5 6// CHECK: Dereference of null pointer7void a(int *x) { if(x){} *x = 47; }8