Peter Collingbourne | ced7671 | 2010-12-01 03:15:31 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | #include "cuda.h" | ||||
4 | |||||
5 | __global__ void g1(int x) {} | ||||
Peter Collingbourne | 2c2c8dd | 2010-12-12 23:02:57 +0000 | [diff] [blame] | 6 | __global__ int g2(int x) { // expected-error {{must have void return type}} |
7 | return 1; | ||||
8 | } |