1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 #include "cuda.h"
4 
5 __global__ void g1(int x) {}
6 __global__ int g2(int x) { // expected-error {{must have void return type}}
7   return 1;
8 }
9