blob: af73ea993f457880dfe02aba8f4df553a587a5d3 [file] [log] [blame]
Peter Collingbournea4ae2292011-10-06 18:51:56 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3#include "../SemaCUDA/cuda.h"
4
5// Test that we build the correct number of calls to cudaSetupArgument followed
6// by a call to cudaLaunch.
7
8// CHECK: define{{.*}}kernelfunc
9// CHECK: call{{.*}}cudaSetupArgument
10// CHECK: call{{.*}}cudaSetupArgument
11// CHECK: call{{.*}}cudaSetupArgument
12// CHECK: call{{.*}}cudaLaunch
13__global__ void kernelfunc(int i, int j, int k) {}