summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/winline-5.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 10:56:23 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 10:56:23 +0000
commit30099c0c3b0dd7c5395eb2946e75a16f900f297a (patch)
tree166fffc125acbefeaadfe937a4ae5c5e18d0c996 /gcc/testsuite/gcc.dg/winline-5.c
parent8ef4f12460a6eea74ed3f8bc49276e46f081b039 (diff)
downloadgcc-30099c0c3b0dd7c5395eb2946e75a16f900f297a.tar.gz
* function.h (struct function): Add function_start_locus.
* cfgexpand.c (gimple_expand_cfg): Use it. * c-parser.c (c_parser_declaration_or_fndef): Set it. testsuite/ * gcc.dg/always_inline.c: Place error message on function name line. * gcc.dg/winline-6.c: Same. * gcc.dg/noreturn-1.c: Same. * gcc.dg/noreturn-7.c: Same. * gcc.dg/inline-14.c: Same. * gcc.dg/always_inline3.c: Same. * gcc.dg/winline-3.c: Same. * gcc.dg/wtr-func-def-1.c: Same. * gcc.dg/winline-5.c: Same. * gcc.dg/winline-7.c: Same. * gcc.dg/winline-9.c: Same. * gcc.dg/noreturn-4.c: Same. * gcc.dg/20041213-1.c: Use column numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140144 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/winline-5.c')
-rw-r--r--gcc/testsuite/gcc.dg/winline-5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/winline-5.c b/gcc/testsuite/gcc.dg/winline-5.c
index 57fa3937e0a..ad1fc4100bb 100644
--- a/gcc/testsuite/gcc.dg/winline-5.c
+++ b/gcc/testsuite/gcc.dg/winline-5.c
@@ -2,8 +2,8 @@
/* { dg-options "-Winline -O2 --param inline-unit-growth=0 --param large-unit-insns=0" } */
void big (void);
-inline int q(void)
-{ /* { dg-warning "inline-unit-growth" } */
+inline int q(void) /* { dg-warning "inline-unit-growth" } */
+{
big();
big();
big();