diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 10:56:18 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 10:56:18 +0000 |
commit | 5ab74c583256d5db351d03b829772b31b81018d4 (patch) | |
tree | 4fb30d2050fcbb93aa0f3ad0dde6432594fbc7f2 /gcc/testsuite/g++.dg/opt/inline6.C | |
parent | 964944fc854c1dd723f7b8150d0deac634aabdbb (diff) |
This commit was manufactured by cvs2svn to create taggcc_3_3_6_release
'gcc_3_3_6_release'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/gcc_3_3_6_release@99150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/opt/inline6.C')
-rw-r--r-- | gcc/testsuite/g++.dg/opt/inline6.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/opt/inline6.C b/gcc/testsuite/g++.dg/opt/inline6.C new file mode 100644 index 00000000000..b1616c7e721 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/inline6.C @@ -0,0 +1,14 @@ +// PR c++/13081 +// { dg-options "-O2" } +// { dg-final { scan-assembler-not "\n_?_Z3fooIlET_S0_\[: \t\n\]" } } + +template<typename T> T foo(T); + +template<typename T> inline T foo(T t) +{ + return t; +} + +void bar (long& l) { + l = foo(l); +} |