aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-08-25 08:22:56 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-08-25 08:22:56 +0000
commitfe377a48b4c41b32bb00b5ac087d781a6b2b596f (patch)
tree486a8bdcc3246d93af945a8d4d31cfe1000b0fc9 /gcc/testsuite/gcc.dg
parente627efefd86786d104fea7c9cc9b10a0c26b5398 (diff)
downloadgcc-fe377a48b4c41b32bb00b5ac087d781a6b2b596f.zip
gcc-fe377a48b4c41b32bb00b5ac087d781a6b2b596f.tar.gz
gcc-fe377a48b4c41b32bb00b5ac087d781a6b2b596f.tar.bz2
re PR c/77323 (Bad "defaults to 'int'" warning for unsupported types)
PR c/77323 * c-decl.c (declspecs_add_type): Set typespec_word even when __intN or _FloatN or _FloatNx is not supported. (finish_declspecs): Set type to integer_type_node when _FloatN or _FloatNx is not supported. * gcc.dg/pr77323.c: New test. From-SVN: r239752
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/pr77323.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr77323.c b/gcc/testsuite/gcc.dg/pr77323.c
new file mode 100644
index 0000000..281c334
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr77323.c
@@ -0,0 +1,6 @@
+/* PR c/77323 */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "" } */
+
+__int128 a; /* { dg-error "not supported" } */
+_Float128x b; /* { dg-error "not supported" } */