[PATCH] D16351: [FIX] Bug 25404 - Crash on typedef in OpenCL 2.0
Igor Chesnokov via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 2 04:02:20 PST 2016
ichesnokov marked 3 inline comments as done.
================
Comment at: test/SemaOpenCL/implicit-typedef.cl:2
@@ +1,2 @@
+// RUN: %clang_cc1 %s -cl-std=CL2.0 -verify -pedantic -fsyntax-only -Wsystem-headers
+typedef atomic_int atomic_flag; // expected-warning {{redefinition of typedef 'atomic_flag' is a C11 feature}}
----------------
Test case command line fixed.
================
Comment at: test/SemaOpenCL/implicit-typedef.cl:2
@@ +1,2 @@
+// RUN: %clang_cc1 %s -cl-std=CL2.0 -verify -pedantic -fsyntax-only -Wsystem-headers
+typedef atomic_int atomic_flag; // expected-warning {{redefinition of typedef 'atomic_flag' is a C11 feature}}
----------------
ichesnokov wrote:
> Test case command line fixed.
Added a warning (reused existing C/C++). Warning is checked in test case.
http://reviews.llvm.org/D16351
More information about the cfe-commits
mailing list