blob: d9571c60fd12c07ccd4f8fc63855152a2f0774e6 [file] [log] [blame]
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// RUN: cxx_compiler -c cxx_rtti cxx_exceptions %s -o %t.o
// RUN: linker %t.o -o %t%exeext
// RUN: bindump %t.o| FileCheck %s
struct foo { };
// Section 2.9.2
// Check that the type-info was generated and no v-table was generated
// CHECK-NOT: _ZTV3foo
// CHECK-DAG: _ZTI3foo
// CHECK-NOT: _ZTV3foo
int main(int argc, char *argv[]) {
throw foo();
}