gcc/testsuite/g++.dg/modules/omp-1_c.C
raw| 1 | // { dg-additional-options "-fmodules-ts" } |
| 2 | // { dg-require-effective-target pthread } |
| 3 | |
| 4 | import foo; |
| 5 | |
| 6 | // { dg-regexp "In module imported at \[^\n]*omp-1_c.C:4:1:\nfoo: error: module contains OpenMP, use '-fopenmp' to enable\n" } |
| 7 | // { dg-prune-output "failed to read" } |
| 8 | // { dg-prune-output "fatal error:" } |
| 9 | // { dg-prune-output "compilation terminated" } |