summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/redecl1.C
blob: cfcf6682691ddf1b494b7ec77166135b087dfb7c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/5857
// This testcase failed because during duplicate_decls the type was promoted
// to int.

// { dg-do compile }

typedef char baz;
extern const char foo[];
const baz foo[] = "xyz";
const char bar[] = "abc";