forked from OSchip/llvm-project
[OpenMP][OMPT][NFC] Fix failing test
The test would fail for gcc, when built with debug flag.
This commit is contained in:
parent
cdf9401df8
commit
723be4042a
|
@ -22,12 +22,15 @@ int main() {
|
|||
int t = (int)sin(0.1);
|
||||
#pragma omp task if (t)
|
||||
{
|
||||
void *task_frame = get_frame_address(0);
|
||||
if (creator_frame == task_frame) {
|
||||
// Assume this code was inlined which the compiler is allowed to do.
|
||||
if (creator_frame == get_frame_address(0)) {
|
||||
printf("Assume this code was inlined which the compiler is allowed to do:\n");
|
||||
print_frame(0);
|
||||
} else if (creator_frame == get_frame_address(1)) {
|
||||
printf("Assume this code was called from the application:\n");
|
||||
print_frame(1);
|
||||
} else {
|
||||
// The exit frame must be our parent!
|
||||
printf("Assume this code was not inlined, exit frame must be our parent:\n");
|
||||
print_frame_from_outlined_fn(1);
|
||||
}
|
||||
print_ids(0);
|
||||
|
|
Loading…
Reference in New Issue