[clang] [clang][OpenMP] Emit host diagnostics that were deferred and never flushed (PR #220316)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 14:49:40 PDT 2026


================
@@ -1,16 +1,14 @@
 // RUN: %clang_cc1 -verify -triple x86_64-unknown-unknown -emit-llvm-only %s
-// RUN: %clang_cc1 -verify=omp -triple x86_64-unknown-unknown -emit-llvm-only -fopenmp %s
+// RUN: %clang_cc1 -verify -triple x86_64-unknown-unknown -emit-llvm-only -fopenmp %s
+// RUN: %clang_cc1 -verify -triple x86_64-unknown-unknown -emit-llvm-only -fopenmp-simd %s
+// RUN: %clang_cc1 -verify -triple x86_64-unknown-unknown -emit-llvm-only -fopenmp -fopenmp-simd %s
 typedef int vec256 __attribute__((ext_vector_type(8)));
 
----------------
alexey-bataev wrote:

```suggestion
void g(int x) { __asm__("nop" : "=@"(x)); }
```

https://github.com/llvm/llvm-project/pull/220316


More information about the cfe-commits mailing list