diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-23 20:53:17 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-23 20:53:17 +0000 |
commit | 4e7c47870abdfabad382e87bd226f3b380517600 (patch) | |
tree | 046d79935a5305e2ca08168568b559af903e3f1a /gcc/testsuite/gcc.dg/c90-array-quals-2.c | |
parent | 0baf5f3709db44f31b6598e8fc80f3145bbe959f (diff) | |
download | gcc-4e7c47870abdfabad382e87bd226f3b380517600.tar.gz |
2004-06-23 Andrew Pinski <apinski@apple.com>
* c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
type qualifiers at all.
If both of the type domains are null and the new element type is
the same as one of the, return the one which the element type.
matches.
Do not call qualify_type on the new type.
2004-06-23 Andrew Pinski <apinski@apple.com>
* gcc.dg/c90-array-quals-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83567 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c90-array-quals-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c90-array-quals-2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c90-array-quals-2.c b/gcc/testsuite/gcc.dg/c90-array-quals-2.c new file mode 100644 index 00000000000..7cb68c84683 --- /dev/null +++ b/gcc/testsuite/gcc.dg/c90-array-quals-2.c @@ -0,0 +1,3 @@ +extern const char *const a[]; +extern const char *const a[]; +extern const char *const a[]; |