1 // RUN: %clang_cc1 -triple x86_64 -verify=expected,dev -std=c++11\
2 // RUN: -verify-ignore-unexpected=note \
3 // RUN: -fopenmp -fopenmp-version=45 -o - %s
5 // RUN: %clang_cc1 -triple x86_64 -verify=expected,dev -std=c++11\
6 // RUN: -verify-ignore-unexpected=note \
7 // RUN: -fopenmp -o - %s
9 // Test no infinite recursion in DeferredDiagnosticEmitter.
10 constexpr int foo(int *x
) {
16 // Test no crash when both caller and callee have target directives.
21 void barB(int *isHost
) {
22 #pragma omp target map(tofrom: isHost)
31 void barA(int *isHost
) {
32 #pragma omp target map(tofrom: isHost)
39 // Test that deleting an incomplete class type doesn't cause an assertion.
40 namespace TestDeleteIncompleteClassDefinition
{
44 delete c
; // expected-warning {{deleting pointer to incomplete type 'a' is incompatible with C++2c and may cause undefined behavior}}
48 } // namespace TestDeleteIncompleteClassDefinition