[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / InterfaceStubs / var-template-specialization-decl.cpp
blob3593c1a901deefe402e722caae3367321783eba9
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs %s | FileCheck %s
4 // CHECK: --- !ifs-v1
5 // CHECK-NEXT: IfsVersion: 3.0
6 // CHECK-NEXT: Target: x86_64-unknown-linux-gnu
7 // CHECK-NEXT: Symbols:
8 // CHECK-NEXT: - { Name: "a", Type: Object, Size: 4 }
9 // CHECK-NEXT: ...
11 template<typename T, T v> struct S9 {
12 static constexpr T value = v;
14 template<typename T> struct S0 : public S9<bool, true> { };
15 template<typename T> constexpr bool CE2 = S0<T>::value;
16 int a = CE2<int>;