================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -std=c++17 %s -verify -Wno-unknown-attributes
+
+typedef int LocalInt __attribute__((opencl_local));
+
+void test_new() {
+  int *p = new LocalInt[1]; // expected-error {{cannot allocate objects of 
type 'int' in address space}}
----------------
zwuis wrote:

Please verify the full message.

https://github.com/llvm/llvm-project/pull/178424
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to