Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / sanitizer-module-constructor.c
blobe4d08cde2620af82ee63b9ad07de2935b5a6c22c
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsanitize=address -O3 -emit-llvm -fdebug-pass-manager -o - %s 2>&1 | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsanitize=thread -O3 -emit-llvm -fdebug-pass-manager -o - %s 2>&1 | FileCheck %s
3 // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsanitize=memory -O3 -emit-llvm -fdebug-pass-manager -o - %s 2>&1 | FileCheck %s
5 // This is regression test for PR42877
7 typedef struct a *b;
8 struct a {
9 int c;
11 int d;
12 b e;
13 static void f(b g) {
14 for (d = g->c;;)
17 void h(void) { f(e); }
19 // CHECK: Running pass: {{.*}}SanitizerPass
20 // CHECK-NOT: Running pass: LoopSimplifyPass on {{.*}}san.module_ctor
21 // CHECK: Running analysis: TargetLibraryAnalysis on {{.*}}san.module_ctor