[clang] [OpenMP] Support for `nothing` in `metadirective` (PR #73690)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 28 11:20:58 PST 2023


================
@@ -12,7 +12,6 @@ int mixed() {
     x=d;
   }
 
-// expected-error at +2 {{#pragma omp nothing' cannot be an immediate substatement}}
----------------
alexey-bataev wrote:

3 Directive and Construct Syntax
Neither a stand-alone directive nor a declarative directive may be used in place of a substatement
15 in a selection statement or iteration statement, or in place of the statement that follows a label.

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


More information about the cfe-commits mailing list