1 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-linux -S -emit-llvm %s -o - -std=c++11 2>&1 | FileCheck %s
2 // expected-no-diagnostics
3 
4 template <int __v> struct integral_constant {
5   static constexpr int value = __v;
6 };
7 
8 template <typename _Tp, int v = 0, bool _IsArray = integral_constant<v>::value>
9 struct decay {
10   typedef int type;
11 };
12 struct V {
13   template <typename TArg0 = int, typename = typename decay<TArg0>::type> V();
14 };
main()15 int main() {
16 #pragma omp target
17   V v;
18   return 0;
19 }
20 
21 // CHECK: call void @__omp_offloading_{{.+}}_main_l16()
22