summaryrefslogtreecommitdiffstats
path: root/test/SemaCUDA/kernel-call.cu
blob: 6d51695522ce4177c223a5d3931d0e44c67e7a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -fsyntax-only -verify %s

#include "cuda.h"

__global__ void g1(int x) {}

template <typename T> void t1(T arg) {
  g1<<<arg, arg>>>(1);
}

int main(void) {
  g1<<<1, 1>>>(42);

  t1(1);
}
OpenPOWER on IntegriCloud