Debian Codegraph @

clang/test/CodeGenCXX/2004-01-11-DynamicInitializedConstant.cpp

raw
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;
12 const int* foo() { return &Y; }