summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtins.cl
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/builtins.cl')
-rw-r--r--clang/test/Sema/builtins.cl5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Sema/builtins.cl b/clang/test/Sema/builtins.cl
index 8cde8f3d10f..7cde5e1a9e4 100644
--- a/clang/test/Sema/builtins.cl
+++ b/clang/test/Sema/builtins.cl
@@ -1,8 +1,11 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic
-// expected-no-diagnostics
kernel void test(global float *out, global float *in, global int* in2) {
out[0] = __builtin_nanf("");
__builtin_memcpy(out, in, 32);
out[0] = __builtin_frexpf(in[0], in2);
}
+
+void pr28651() {
+ __builtin_alloca(value); // expected-error{{use of undeclared identifier}}
+}
OpenPOWER on IntegriCloud