You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
370 B
11 lines
370 B
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
|
|
|
|
#include "Inputs/cuda.h"
|
|
|
|
__global__ void k1() {}
|
|
|
|
template<int ...Dimensions> void k1Wrapper() {
|
|
void (*f)() = [] { k1<<<Dimensions, Dimensions>>>(); }; // expected-error {{initializer contains unexpanded parameter pack 'Dimensions'}}
|
|
void (*g[])() = { [] { k1<<<Dimensions, Dimensions>>>(); } ... }; // ok
|
|
}
|