aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2004-06-02 19:46:13 +0000
committerEric Christopher <echristo@gcc.gnu.org>2004-06-02 19:46:13 +0000
commit3aeb3655cf89356c86726d49316dcb957859971f (patch)
treed36ee4bf09e2586b23075250a34462a295e2664c /gcc/testsuite/gcc.c-torture
parent03a4c969079e508d695f0b8b82bd573b54e01a3c (diff)
downloadgcc-3aeb3655cf89356c86726d49316dcb957859971f.zip
gcc-3aeb3655cf89356c86726d49316dcb957859971f.tar.gz
gcc-3aeb3655cf89356c86726d49316dcb957859971f.tar.bz2
c-typeck.c (common_type): Don't lose type qualifiers when creating new variants.
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. From-SVN: r82577
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20040602-1.c5
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 0000000..8f751e3
--- /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;