summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pr12251.c
blob: a644bb79da550b9538f96dd217fdf2c8a6b9b023 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 %s -emit-llvm -O1 -relaxed-aliasing -o - | FileCheck %s

enum e1 {e1_a = -1 };
enum e1 g1(enum e1 *x) {
  return *x;
}

// CHECK: define i32 @g1
// CHECK: load i32* %x, align 4
// CHECK-NOT: range
// CHECK: ret