aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@gcc.gnu.org>1998-10-10 08:15:19 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-10 08:15:19 +0000
commitce886362097728b8156e709760ba15ba58557642 (patch)
treef5459a6f2699dfb6e1e7b20ee06fad6218958840 /gcc
parent71685c48ea7df3f46314ad1406bb1157dc8d4b7a (diff)
downloadgcc-ce886362097728b8156e709760ba15ba58557642.zip
gcc-ce886362097728b8156e709760ba15ba58557642.tar.gz
gcc-ce886362097728b8156e709760ba15ba58557642.tar.bz2
typeof is an extension, -ansi -pedantic (default options) wouldn't
accept it; make it __typeof__ From-SVN: r22973
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/typeof1.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C b/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C
index a21f3c7..59edb91 100644
--- a/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C
+++ b/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C
@@ -9,7 +9,7 @@ struct inttest {
template <class T>
void F(T x)
{
- typedef typeof(x.elem[0]) dummy;
+ typedef __typeof__(x.elem[0]) dummy;
i = 1;
}