1*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -verify -fopenmp -std=c++11 -triple x86_64-unknown-unknown -x c++ -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck %s
2*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
3*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -debug-info-kind=limited -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
4*96edb2e3SAlexey Bataev 
5*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -verify -fopenmp-simd -std=c++11 -triple x86_64-unknown-unknown -x c++ -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck --check-prefix SIMD-ONLY1 %s
6*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
7*96edb2e3SAlexey Bataev // RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -debug-info-kind=limited -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY1 %s
8*96edb2e3SAlexey Bataev // SIMD-ONLY1-NOT: {{__kmpc|__tgt}}
9*96edb2e3SAlexey Bataev 
10*96edb2e3SAlexey Bataev // expected-no-diagnostics
11*96edb2e3SAlexey Bataev //
12*96edb2e3SAlexey Bataev #ifndef HEADER
13*96edb2e3SAlexey Bataev #define HEADER
14*96edb2e3SAlexey Bataev 
15*96edb2e3SAlexey Bataev // CHECK: @{{.*}}Foo{{.*}}bar{{.*}} = constant i32 1,
16*96edb2e3SAlexey Bataev 
17*96edb2e3SAlexey Bataev // Section A - Define a class with a static constexpr data member.
18*96edb2e3SAlexey Bataev struct Foo {
19*96edb2e3SAlexey Bataev   static constexpr int bar = 1;
20*96edb2e3SAlexey Bataev };
21*96edb2e3SAlexey Bataev 
22*96edb2e3SAlexey Bataev // Section B - ODR-use the data member.
23*96edb2e3SAlexey Bataev void F(const int &);
24*96edb2e3SAlexey Bataev void Test() { F(Foo::bar); }
25*96edb2e3SAlexey Bataev 
26*96edb2e3SAlexey Bataev // Section C - Define the data member.
27*96edb2e3SAlexey Bataev constexpr int Foo::bar;
28*96edb2e3SAlexey Bataev #endif
29*96edb2e3SAlexey Bataev 
30