* g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
template-dependent type
From-SVN: r22972
+1998-10-10 Dariush Eslimi <eslimi@loran.com>
+
+ * g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
+ template-dependent type
+
1998-10-10 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.brendan/parse3.C: XFAILs, not ERRORs
--- /dev/null
+// Build don't link:
+
+// crash test - XFAIL *-*-*
+
+struct inttest {
+ int elem[1];
+};
+
+template <class T>
+void F(T x)
+{
+ typedef typeof(x.elem[0]) dummy;
+ i = 1;
+}
+
+int main() {
+ inttest x;
+ F(x);
+}