traits: add bodies to test objects for ODR-used symbols
This commit is contained in:
parent
fb2888d2d5
commit
aff4786409
@ -27,11 +27,12 @@ struct has_return_type<
|
|||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
int plain (char, float);
|
extern int plain (char, float) { return 0; }
|
||||||
int with_noexcept (char, float) noexcept;
|
extern int with_noexcept (char, float) noexcept { return 0; }
|
||||||
|
|
||||||
struct foo {
|
struct foo {
|
||||||
int bar (double, char) const;
|
int bar (double, char) const { return 0; }
|
||||||
int with_noexcept (double, char) noexcept;
|
int with_noexcept (double, char) noexcept { return 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user