1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -std=c++11 | FileCheck %s
6 virtual ~X(); // Key function.
7 virtual void f(); // Not a key function.
12 // Verify that the vtable is emitted.
13 // CHECK-DAG: @_ZTVN5Test11XE ={{.*}} unnamed_addr constant
18 virtual ~X() = default; // Not a key function.
19 virtual void f(); // Key function.
24 // Verify that the vtable is emitted.
25 // CHECK-DAG: @_ZTVN5Test21XE ={{.*}} unnamed_addr constant
30 virtual ~X() = delete; // Not a key function.
31 virtual void f(); // Key function.
36 // Verify that the vtable is emitted.
37 // CHECK-DAG: @_ZTVN5Test31XE ={{.*}} unnamed_addr constant