aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040409-1.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-04-09 20:08:03 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-04-09 13:08:03 -0700
commitc29726e22da92656d5e0215da345410d2731252c (patch)
treeaf073f56559cefb897288ce379c8aac18d4ba674 /gcc/testsuite/gcc.dg/20040409-1.c
parent750054a2ee1925e265b1b6209a7ca0b0df2bcc04 (diff)
downloadgcc-c29726e22da92656d5e0215da345410d2731252c.zip
gcc-c29726e22da92656d5e0215da345410d2731252c.tar.gz
gcc-c29726e22da92656d5e0215da345410d2731252c.tar.bz2
c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead of TREE_READONLY for types.
2004-04-09 Andrew Pinski <pinskia@physics.uc.edu> * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead of TREE_READONLY for types. 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu> * gcc.dg/20040409-1.c: New test. From-SVN: r80565
Diffstat (limited to 'gcc/testsuite/gcc.dg/20040409-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20040409-1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20040409-1.c b/gcc/testsuite/gcc.dg/20040409-1.c
new file mode 100644
index 0000000..dc9206a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20040409-1.c
@@ -0,0 +1,4 @@
+/* This tests to make sure that the attribute noreturn
+ can be used on function pointers. */
+
+int (*temp) (void) __attribute__((noreturn));