diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/20100519-1_0.C | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 12f4e3cb6bf..4de8c08286e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-05-19 Richard Guenther <rguenther@suse.de> + + PR lto/44196 + * g++.dg/lto/20100519-1_0.C: New testcase. + 2010-05-19 Daniel Franke <franke.daniel@gmail.com> PR fortran/42360 diff --git a/gcc/testsuite/g++.dg/lto/20100519-1_0.C b/gcc/testsuite/g++.dg/lto/20100519-1_0.C new file mode 100644 index 00000000000..bc2ddf140d1 --- /dev/null +++ b/gcc/testsuite/g++.dg/lto/20100519-1_0.C @@ -0,0 +1,23 @@ +// { dg-lto-do link } + +template <typename Ordinal> +struct DirectSerializationTraits +{ + static void fromCountToDirectBytes(const Ordinal count) {} +}; +template<typename Ordinal> class SerializationTraits + : public DirectSerializationTraits<Ordinal> { }; +template <typename Ordinal> +class ConstValueTypeSerializationBuffer +{ +public: + ConstValueTypeSerializationBuffer(const Ordinal count) + { + typedef SerializationTraits<Ordinal> SerT; + SerT::fromCountToDirectBytes(count); + } +}; +int main () +{ + ConstValueTypeSerializationBuffer<int> charSendBuffer(1); +} |