• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 #include "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