1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple nvptx-unknown-unknown -O3 -S -o %t %s -emit-llvm
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -O3 -S -o %t %s -emit-llvm
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // Just make sure Clang uses the proper calling convention for the NVPTX back-end.
5*f4a2713aSLionel Sambuc // If something is wrong, the back-end will fail.
foo(float * a,float * b)6*f4a2713aSLionel Sambuc void foo(float* a,
7*f4a2713aSLionel Sambuc          float* b) {
8*f4a2713aSLionel Sambuc   a[0] = b[0];
9*f4a2713aSLionel Sambuc }
10