From aff478640968762ac59985da68757a9b5e560a24 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 11 Oct 2017 17:15:47 +1100 Subject: [PATCH] traits: add bodies to test objects for ODR-used symbols --- test/traits.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/traits.cpp b/test/traits.cpp index 674a9f86..90d5e4bc 100644 --- a/test/traits.cpp +++ b/test/traits.cpp @@ -27,11 +27,12 @@ struct has_return_type< /////////////////////////////////////////////////////////////////////////////// -int plain (char, float); -int with_noexcept (char, float) noexcept; +extern int plain (char, float) { return 0; } +extern int with_noexcept (char, float) noexcept { return 0; } + struct foo { - int bar (double, char) const; - int with_noexcept (double, char) noexcept; + int bar (double, char) const { return 0; } + int with_noexcept (double, char) noexcept { return 0; } };