[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / 2004-01-11-DynamicInitializedConstant.cpp
blob0cd8419185ae19bcc86a1a9ef5eeb1855ad84026
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
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
10 extern int X;
11 const int Y = X;
12 const int* foo() { return &Y; }