https://github.com/dreachem approved this pull request.
https://github.com/llvm/llvm-project/pull/92055
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -208,4 +209,39 @@ int main(int argc, char **argv) {
extern template int S::TS;
extern template long S::TS;
+// DUMP-LABEL: FunctionDecl {{.*}} implicit_firstprivate
+void
+implicit_firstprivate() {
+
+#pragma omp parallel num_threads(1)
+ {
+int i = 0;
+// DUMP: O
@@ -12,7 +12,6 @@ int mixed() {
x=d;
}
-// expected-error@+2 {{#pragma omp nothing' cannot be an immediate
substatement}}
dreachem wrote:
As I understand it, the `nothing` directive is not the equivalent of a null
statement. It is an "ignore me" direc
@@ -12,7 +12,6 @@ int mixed() {
x=d;
}
-// expected-error@+2 {{#pragma omp nothing' cannot be an immediate
substatement}}
dreachem wrote:
@alexey-bataev That restriction shouldn't apply to the `nothing` directive.
The `nothing` directive is not execu