mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:56:06 +00:00

Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
25 lines
678 B
C
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
|
|
}
|