summaryrefslogtreecommitdiffstats
path: root/clang/test/Profile/cxx-structors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Profile/cxx-structors.cpp')
-rw-r--r--clang/test/Profile/cxx-structors.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Profile/cxx-structors.cpp b/clang/test/Profile/cxx-structors.cpp
index 578fc308bcc..8e0fac163d9 100644
--- a/clang/test/Profile/cxx-structors.cpp
+++ b/clang/test/Profile/cxx-structors.cpp
@@ -16,12 +16,28 @@ struct Bar : public Foo {
~Bar();
};
+struct Baz : virtual public Foo {
+ Baz() {}
+ Baz(int x) : Foo(x) {}
+ ~Baz();
+};
+
+struct Quux : public Foo {
+ Quux(const char *y, ...) : Foo(0) {}
+};
+
Foo foo;
Foo foo2(1);
Bar bar;
+Baz baz;
+Baz baz2(1);
+Quux qux("fi", "fo", "fum");
// Profile data for complete constructors and destructors must absent.
+// INSTR: @__profc__ZN3BazC1Ev =
+// INSTR: @__profc__ZN3BazC1Ei =
+// INSTR: @__profc__ZN4QuuxC1EPKcz =
// INSTR: @__profc_main =
// INSTR: @__profc__ZN3FooC2Ev =
// INSTR: @__profc__ZN3FooD2Ev =
OpenPOWER on IntegriCloud