blob: 0cd8419185ae19bcc86a1a9ef5eeb1855ad84026 [file] [log] [blame]
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
// Catch the beginning and the end of the IR. This prevents the CHECK-NOT from
// matching a spurious "constant" string in file paths printed in the output.
//
// CHECK-LABEL: target triple
// CHECK-NOT: constant
// CHECK-LABEL: attributes
extern int X;
const int Y = X;
const int* foo() { return &Y; }