// RUN: %clang_cc1 -std=c++11 -fopenmp -fopenmp-version=45 -triple x86_64-apple-darwin13.4.0 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -std=c++11 -fopenmp-simd -fopenmp-version=45 -triple x86_64-apple-darwin13.4.0 -emit-llvm -o - %s | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// RUN: %clang_cc1 -std=c++11 -fopenmp -triple x86_64-apple-darwin13.4.0 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -std=c++11 -fopenmp-simd -triple x86_64-apple-darwin13.4.0 -emit-llvm -o - %s | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
//CHECK: call i32 @__kmpc_cancel
//CHECK: br {{.*}}label %[[EXIT:[^,].+]], label %[[CONTINUE:.+]]
//CHECK: [[EXIT]]:
//CHECK: store i32 [[EXIT_SLOT:[0-9]+]]
//CHECK: br label %[[CLEANUP:.+]]
//CHECK: [[CONTINUE]]:
//CHECK: store i32 [[CONT_SLOT:[0-9]+]],
//CHECK: br label %[[CLEANUP]]
//CHECK: [[CLEANUP]]:
//CHECK-NEXT: call void @_ZN3ObjD1Ev
//CHECK: switch i32{{.*}}, label %[[UNREACHABLE:.+]] [
//CHECK: i32 [[CONT_SLOT]], label %[[CLEANUPCONT:.+]]
//CHECK: i32 [[EXIT_SLOT]], label %[[CANCELEXIT:.+]]
//CHECK-NEXT: ]
//CHECK: [[CLEANUPCONT]]:
//CHECK: br label %[[CANCELCONT:.+]]
//CHECK: [[CANCELCONT]]:
//CHECK-NEXT: call void @__kmpc_barrier(
//CHECK-NEXT: ret void
//CHECK: [[UNREACHABLE]]:
//CHECK-NEXT: unreachable
//CHECK-NEXT: }
;
void