* g++.old-deja/g++.pt/const2.C (main): Examine p to prevent an
optimising linker from discarding it.
From-SVN: r117039
+2006-09-19 Ben Elliston <bje@au.ibm.com>
+
+ * g++.old-deja/g++.pt/const2.C (main): Examine p to prevent an
+ optimising linker from discarding it.
+
2006-09-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28526
template <class T> struct A { static const int i = B<T>::i; };
const int *p = &A<int>::i;
-int main(){}
+int main ()
+{
+ // Examine p to prevent optimising linkers from discarding it.
+ return (p != 0);
+}