Commit 71685c48 by Dariush Eslimi Committed by Alexandre Oliva

typeof1.C: New test; typeof based on template-dependent type

	* g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
	template-dependent type

From-SVN: r22972
parent e98791f8
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
......
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment