
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
31 lines
618 B
C++
31 lines
618 B
C++
// RUN: %clang_cc1 -fms-extensions -fno-rtti -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
|
|
|
|
// CHECK: @"\01??_7D@C@?1??foo@@YAXXZ@6B@" =
|
|
// CHECK: @"\01??_7B@?1??foo@A@@QAEXH@Z@6B@" =
|
|
// CHECK: define {{.*}} @"\01?baz@E@?3??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"(
|
|
|
|
// Microsoft Visual C++ ABI examples.
|
|
struct A {
|
|
void foo (int) {
|
|
struct B { virtual ~B() {} };
|
|
B();
|
|
}
|
|
};
|
|
inline void foo () {
|
|
struct C {
|
|
struct D { virtual ~D() {} };
|
|
void bar () {
|
|
struct E {
|
|
void baz() { }
|
|
};
|
|
E().baz();
|
|
}
|
|
};
|
|
A().foo(0);
|
|
C::D();
|
|
C().bar();
|
|
}
|
|
void call () {
|
|
foo();
|
|
}
|