forked from OSchip/llvm-project
24 lines
486 B
C
24 lines
486 B
C
// RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - %s | FileCheck %s
|
|
|
|
extern void abort(void) __attribute__((noreturn));
|
|
|
|
void f1(void) {
|
|
abort();
|
|
}
|
|
// CHECK-LABEL: define {{.*}}void @f1()
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: call void @abort()
|
|
// CHECK-NEXT: unreachable
|
|
// CHECK-NEXT: }
|
|
|
|
void *f2(void) {
|
|
abort();
|
|
return 0;
|
|
}
|
|
// CHECK-LABEL: define {{.*}}i8* @f2()
|
|
// CHECK-NEXT: entry:
|
|
// CHECK-NEXT: call void @abort()
|
|
// CHECK-NEXT: unreachable
|
|
// CHECK-NEXT: }
|
|
|