summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-11-10 16:10:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-11-10 16:10:16 +0000
commit933f41161d6cf4ddc3d66cf71f2c97e7cf35f6c1 (patch)
treea17d8afce43df241193f8c5a7469a0523af0ab28 /llvm/unittests
parentbcd88ef76491ed5939e2c4542e1b8fbe7cbdaec0 (diff)
downloadbcm5719-llvm-933f41161d6cf4ddc3d66cf71f2c97e7cf35f6c1.tar.gz
bcm5719-llvm-933f41161d6cf4ddc3d66cf71f2c97e7cf35f6c1.zip
Provide definitions for all functions.
ICC refuses to compile a class in an anonymous namespace if some functions aren't defined. Fixes PR13477. llvm-svn: 167676
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/Support/AlignOfTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/unittests/Support/AlignOfTest.cpp b/llvm/unittests/Support/AlignOfTest.cpp
index f2d11708a2b..f01e6609390 100644
--- a/llvm/unittests/Support/AlignOfTest.cpp
+++ b/llvm/unittests/Support/AlignOfTest.cpp
@@ -66,6 +66,17 @@ struct V6 : S1 { virtual ~V6(); };
struct V7 : virtual V2, virtual V6 { virtual ~V7(); };
struct V8 : V5, virtual V6, V7 { double zz; virtual ~V8(); };
+double S6::f() { return 0.0; }
+float D2::g() { return 0.0f; }
+V1::~V1() {}
+V2::~V2() {}
+V3::~V3() {}
+V4::~V4() {}
+V5::~V5() {}
+V6::~V6() {}
+V7::~V7() {}
+V8::~V8() {}
+
// Ensure alignment is a compile-time constant.
char LLVM_ATTRIBUTE_UNUSED test_arr1
[AlignOf<char>::Alignment > 0]
OpenPOWER on IntegriCloud