2012-05-10 05:21:49 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -O1 -relaxed-aliasing -o - | FileCheck %s
|
2012-03-25 00:50:34 +08:00
|
|
|
|
|
|
|
enum e1 {e1_a = -1 };
|
|
|
|
enum e1 g1(enum e1 *x) {
|
|
|
|
return *x;
|
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LABEL: define i32 @g1
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK: load i32, i32* %x, align 4
|
2012-03-25 00:50:34 +08:00
|
|
|
// CHECK-NOT: range
|
|
|
|
// CHECK: ret
|