| // RUN: %clang_cc1 -triple x86_64 -verify=expected,dev -std=c++11\ |
| // RUN: -verify-ignore-unexpected=note \ |
| // RUN: -fopenmp -fopenmp-version=45 -o - %s |
| // RUN: %clang_cc1 -triple x86_64 -verify=expected,dev -std=c++11\ |
| // RUN: -verify-ignore-unexpected=note \ |
| // Test no infinite recursion in DeferredDiagnosticEmitter. |
| constexpr int foo(int *x) { |
| // Test no crash when both caller and callee have target directives. |
| #pragma omp target map(tofrom: isHost) |
| #pragma omp target map(tofrom: isHost) |
| // Test that deleting an incomplete class type doesn't cause an assertion. |
| namespace TestDeleteIncompleteClassDefinition { |
| delete c; // expected-warning {{deleting pointer to incomplete type 'TestDeleteIncompleteClassDefinition::a' may cause undefined behavior}} |
| } // namespace TestDeleteIncompleteClassDefinition |