Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / vla-4.c
blobf94bc8ea29eeb0e441c22baec5f01f034919c6ac
1 // RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
3 int f(void);
4 int h(void);
6 void t1(void) {
7 _Atomic(typeof((int (*)[f()]) h())) v;
8 // CHECK: [[N:%.*]] = alloca ptr, align 4
9 // CHECK-NEXT: [[P:%.*]] = call i32 @f
10 // CHECK-NEXT: [[P:%.*]] = call i32 @h
13 void t2(void) {
14 typeof(typeof((int (*)[f()]) h())) v;
15 // CHECK: [[N:%.*]] = alloca ptr, align 4
16 // CHECK-NEXT: [[P:%.*]] = call i32 @f
17 // CHECK-NEXT: [[P:%.*]] = call i32 @h
20 void t3(typeof((int (*)[f()]) h()) v) {
21 // CHECK: store ptr %v, ptr %{{[.0-9A-Za-z]+}}, align 4
22 // CHECK-NEXT: [[P:%.*]] = call i32 @f
23 // CHECK-NEXT: [[P:%.*]] = call i32 @h