diff options
author | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-02 19:46:13 +0000 |
---|---|---|
committer | echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-02 19:46:13 +0000 |
commit | a5d9b222b4ecca514a9b0e9c18132bb40fea2be2 (patch) | |
tree | d36ee4bf09e2586b23075250a34462a295e2664c /gcc/testsuite/gcc.c-torture | |
parent | a66b1d06a7c0fb9d05e195df2b897c04c5f57d56 (diff) | |
download | gcc-a5d9b222b4ecca514a9b0e9c18132bb40fea2be2.tar.gz |
2004-06-02 Eric Christopher <echristo@redhat.com>
* c-typeck.c (common_type): Don't lose type qualifiers
when creating new variants.
2004-06-02 Eric Christopher <echristo@redhat.com>
* gcc.c-torture/compile/20040602-1.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20040602-1.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040602-1.c b/gcc/testsuite/gcc.c-torture/compile/20040602-1.c new file mode 100644 index 00000000000..8f751e36208 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20040602-1.c @@ -0,0 +1,5 @@ +/* Test type qualifiers. These should as equal types. */ +extern volatile unsigned long foo; +typedef unsigned long ulong; +extern volatile ulong foo; +volatile ulong foo; |