diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template18.C b/gcc/testsuite/g++.old-deja/g++.jason/template18.C
index d736826a9e53d33f2dd051bdef0efc8b85b4ede3..fa004d2c9ab00dd8e506a31bf98a81e00c431697 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/template18.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template18.C
@@ -1,6 +1,6 @@
 // GROUPS passed templates
 // Bug: g++ emits template instances when it shouldn't.
-// Special g++ Options: -g -O0 -Wno-deprecated -fexternal-templates
+// Special g++ Options: -g -fno-inline -Wno-deprecated -fexternal-templates
 
 // We mark this XFAIL because we can't test for expected linker errors.
 // If we get an XPASS for this testcase, that's a bug.