xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCUDA/qualifiers.cu (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 #include "Inputs/cuda.h"
4 
g1(int x)5 __global__ void g1(int x) {}
g2(int x)6 __global__ int g2(int x) { // expected-error {{must have void return type}}
7   return 1;
8 }
9