2010-08-25 11:32:38 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386 -emit-llvm -O2 -o - %s | FileCheck %s
|
|
|
|
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK-LABEL: define{{.*}} i32 @f0()
|
2010-08-25 11:32:38 +08:00
|
|
|
// CHECK: ret i32 1
|
|
|
|
// CHECK: }
|
|
|
|
|
|
|
|
static _Bool f0_0(void *a0) { return (_Bool) a0; }
|
2022-02-15 22:27:12 +08:00
|
|
|
int f0(void) { return f0_0((void*) 0x2); }
|
2010-09-03 10:07:00 +08:00
|
|
|
|
|
|
|
_Bool f1(void) {
|
2022-02-15 22:27:12 +08:00
|
|
|
return (_Bool) ({ void (*x)(void); x = 0; });
|
2010-09-03 10:07:00 +08:00
|
|
|
}
|