#pragma omp cancel parallel
}
})";
- ASSERT_TRUE(
- PrintedOMPStmtMatches(Source, OMPInnermostStructuredBlockMatcher(), R"({
+ const char *Expected = R"({
#pragma omp cancel parallel
}
-)"));
+)";
+ ASSERT_TRUE(PrintedOMPStmtMatches(
+ Source, OMPInnermostStructuredBlockMatcher(), Expected));
ASSERT_TRUE(PrintedOMPStmtMatches(Source, OMPStandaloneDirectiveMatcher(),
"#pragma omp cancel parallel\n"));
}
void test() {
#pragma omp parallel
{
-#pragma omp cancellation point parallel
+ #pragma omp cancellation point parallel
}
})";
- ASSERT_TRUE(
- PrintedOMPStmtMatches(Source, OMPInnermostStructuredBlockMatcher(), R"({
+ const char *Expected = R"({
#pragma omp cancellation point parallel
}
-)"));
+)";
+ ASSERT_TRUE(PrintedOMPStmtMatches(
+ Source, OMPInnermostStructuredBlockMatcher(), Expected));
ASSERT_TRUE(
PrintedOMPStmtMatches(Source, OMPStandaloneDirectiveMatcher(),
"#pragma omp cancellation point parallel\n"));