This patch contains test cases for offloading in openmp 4.5. Specifically, these test cases cover the 'target data' construct.
test_target_data_if.c
test_target_data_map_array_sections.c
test_target_data_use_device_ptr.c
test_target_data_map.c
test_target_data_map_classes.cpp
test_target_data_map_devices.c
Again thinking about this, the check may be wrong: The OpenMP standard says that the target data and target constructs execute on the host, if the if clause evaluates to false. This check is assuming that it doesn't execute at all, right?