xref: /llvm-project/clang/test/CodeGenCXX/2004-01-11-DynamicInitializedConstant.cpp (revision cd50f910f4d1a6bb54fd8968f067febbc7320f28)
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 
3 // Catch the beginning and the end of the IR. This prevents the CHECK-NOT from
4 // matching a spurious "constant" string in file paths printed in the output.
5 //
6 // CHECK-LABEL: target triple
7 // CHECK-NOT: constant
8 // CHECK-LABEL: attributes
9 
10 extern int X;
11 const int Y = X;
foo()12 const int* foo() { return &Y; }
13