forked from OSchip/llvm-project
18 lines
589 B
C++
18 lines
589 B
C++
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs %s | FileCheck %s
|
|
|
|
// CHECK: --- !experimental-ifs-v1
|
|
// CHECK-NEXT: IfsVersion: 1.0
|
|
// CHECK-NEXT: Triple: x86_64-unknown-linux-gnu
|
|
// CHECK-NEXT: ObjectFileFormat: ELF
|
|
// CHECK-NEXT: Symbols:
|
|
// CHECK-NEXT: "a" : { Type: Object, Size: 4 }
|
|
// CHECK-NEXT: ...
|
|
|
|
template<typename T, T v> struct S9 {
|
|
static constexpr T value = v;
|
|
};
|
|
template<typename T> struct S0 : public S9<bool, true> { };
|
|
template<typename T> constexpr bool CE2 = S0<T>::value;
|
|
int a = CE2<int>;
|