1 // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -std=c++11 -o - -fcxx-exceptions -fexceptions | FileCheck %s 2 3 struct A { 4 A(); 5 A(const A&); 6 A(A&&); 7 }; 8 struct B : virtual A { 9 virtual void f() = 0; 10 }; 11 struct C : B { 12 void f(); 13 }; 14 15 // CHECK-DAG: define {{.*}} @_ZN1BC2Ev({{.*}} #[[NOUNWIND:[0-9]*]] 16 C c1; 17 // CHECK-DAG: define {{.*}} @_ZN1BC2ERKS_({{.*}} #[[NOUNWIND]] 18 C c2(c1); 19 // CHECK-DAG: define {{.*}} @_ZN1BC2EOS_({{.*}} #[[NOUNWIND]] 20 C c3(static_cast<C&&>(c1)); 21 22 // CHECK-DAG: #[[NOUNWIND]] = {{{.*}} nounwind 23