13 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s2 3// Catch the beginning and the end of the IR. This prevents the CHECK-NOT from4// matching a spurious "constant" string in file paths printed in the output.5//6// CHECK-LABEL: target triple7// CHECK-NOT: constant8// CHECK-LABEL: attributes9 10extern int X;11const int Y = X;12const int* foo() { return &Y; }13