blob: 0cd8419185ae19bcc86a1a9ef5eeb1855ad84026 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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; }
|