summaryrefslogtreecommitdiff
path: root/clang/test/SemaCUDA/qualifiers.cu
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCUDA/qualifiers.cu')
-rw-r--r--clang/test/SemaCUDA/qualifiers.cu8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCUDA/qualifiers.cu b/clang/test/SemaCUDA/qualifiers.cu
new file mode 100644
index 0000000..1346d65
--- /dev/null
+++ b/clang/test/SemaCUDA/qualifiers.cu
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+#include "cuda.h"
+
+__global__ void g1(int x) {}
+__global__ int g2(int x) { // expected-error {{must have void return type}}
+ return 1;
+}