brintos

brintos / llvm-project-archived public Read only

0
0
Text · 678 B · f94bc8e Raw
25 lines · c
1// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s2 3int f(void);4int h(void);5 6void t1(void) {7  _Atomic(typeof((int (*)[f()]) h())) v;8  // CHECK:      [[N:%.*]] = alloca ptr, align 49  // CHECK-NEXT: [[P:%.*]] = call i32 @f10  // CHECK-NEXT: [[P:%.*]] = call i32 @h11}12 13void t2(void) {14  typeof(typeof((int (*)[f()]) h())) v;15  // CHECK:      [[N:%.*]] = alloca ptr, align 416  // CHECK-NEXT: [[P:%.*]] = call i32 @f17  // CHECK-NEXT: [[P:%.*]] = call i32 @h18}19 20void t3(typeof((int (*)[f()]) h()) v) {21  // CHECK:      store ptr %v, ptr %{{[.0-9A-Za-z]+}}, align 422  // CHECK-NEXT: [[P:%.*]] = call i32 @f23  // CHECK-NEXT: [[P:%.*]] = call i32 @h24}25