• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2 
3 #include "Inputs/cuda.h"
4 
k1()5 __global__ void k1() {}
6 
k1Wrapper()7 template<int ...Dimensions> void k1Wrapper() {
8   void (*f)() = [] { k1<<<Dimensions, Dimensions>>>(); }; // expected-error {{initializer contains unexpanded parameter pack 'Dimensions'}}
9   void (*g[])() = { [] { k1<<<Dimensions, Dimensions>>>(); } ... }; // ok
10 }
11