diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/decltype41.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/decltype41.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype41.C b/gcc/testsuite/g++.dg/cpp0x/decltype41.C index 1439e15c0d4..65f75b1e4fa 100644 --- a/gcc/testsuite/g++.dg/cpp0x/decltype41.C +++ b/gcc/testsuite/g++.dg/cpp0x/decltype41.C @@ -23,15 +23,15 @@ class B template <class T> struct C { - template <class U> decltype (a.i) f() { } // #1 - template <class U> decltype (b.i) f() { } // #2 + template <class U> decltype (a.i) f() { return 0; } // #1 + template <class U> decltype (b.i) f() { return 1; } // #2 }; template <class T> struct D { - template <class U> decltype (A::j) f() { } // #1 - template <class U> decltype (B::j) f() { } // #2 + template <class U> decltype (A::j) f() { return 2; } // #1 + template <class U> decltype (B::j) f() { return 3; } // #2 }; int main() |