summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-03-18 22:43:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-03-18 22:43:19 +0000
commit997ff02c7beac845d1f7210f6ee6e89a6092c768 (patch)
treed73ad30be04a6eeed3a2dc4ed643ce2b936bc183 /clang/test
parentcb1c81afa0f319de56afddd1b13f6b1ce3cdec1a (diff)
downloadbcm5719-llvm-997ff02c7beac845d1f7210f6ee6e89a6092c768.tar.gz
bcm5719-llvm-997ff02c7beac845d1f7210f6ee6e89a6092c768.zip
Fix a typo in r204164 that made *all* keywords available in OpenCL mode.
llvm-svn: 204196
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/opencl-keywords.cl8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Parser/opencl-keywords.cl b/clang/test/Parser/opencl-keywords.cl
new file mode 100644
index 00000000000..5bc70549373
--- /dev/null
+++ b/clang/test/Parser/opencl-keywords.cl
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
+// expected-no-diagnostics
+
+void f(half *h) {
+ bool b;
+ int wchar_t;
+ int constexpr;
+}
OpenPOWER on IntegriCloud