[PATCH] D107163: [OpenCL] __cpp_threadsafe_static_init is by default undefined in OpenCL mode

Justas Janickas via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 30 07:49:05 PDT 2021


Topotuna marked an inline comment as done.
Topotuna added inline comments.


================
Comment at: clang/test/Driver/threadsafe-statics.clcpp:2
+// RUN: %clang -### -c -DNO_THREADSAFE_STATICS %s 2>&1 | FileCheck --check-prefix=CHECK-NO-THREADSAFE-STATICS %s
+// RUN: %clang -### -fno-threadsafe-statics -DNO_THREADSAFE_STATICS -c %s 2>&1 | FileCheck --check-prefix=CHECK-NO-THREADSAFE-STATICS %s
+
----------------
Anastasia wrote:
> Worth adding one more RUN line with `-fthreadsafe-statics` passed.
Such RUN line is present on line 8. Should I move it up so that all RUN lines are close to one another?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107163/new/

https://reviews.llvm.org/D107163



More information about the cfe-commits mailing list