Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

25 lines
678 B
C

// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
int f(void);
int h(void);
void t1(void) {
_Atomic(typeof((int (*)[f()]) h())) v;
// CHECK: [[N:%.*]] = alloca ptr, align 4
// CHECK-NEXT: [[P:%.*]] = call i32 @f
// CHECK-NEXT: [[P:%.*]] = call i32 @h
}
void t2(void) {
typeof(typeof((int (*)[f()]) h())) v;
// CHECK: [[N:%.*]] = alloca ptr, align 4
// CHECK-NEXT: [[P:%.*]] = call i32 @f
// CHECK-NEXT: [[P:%.*]] = call i32 @h
}
void t3(typeof((int (*)[f()]) h()) v) {
// CHECK: store ptr %v, ptr %{{[.0-9A-Za-z]+}}, align 4
// CHECK-NEXT: [[P:%.*]] = call i32 @f
// CHECK-NEXT: [[P:%.*]] = call i32 @h
}