X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fconst-1.c;h=a5b2b1677283bdddf0c44b167f3c5469e9e653f7;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=2657c9b5738babe3aa976545ad3f2737e2e99943;hpb=b209d8dc611f3cd793491b8490522bdaf819622b;p=platform%2Fupstream%2Fgcc48.git diff --git a/gcc/testsuite/gcc.dg/const-1.c b/gcc/testsuite/gcc.dg/const-1.c index 2657c9b..a5b2b16 100644 --- a/gcc/testsuite/gcc.dg/const-1.c +++ b/gcc/testsuite/gcc.dg/const-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target nonpic } } */ /* { dg-options "-O2 -Wsuggest-attribute=const" } */ extern int extern_const(int a) __attribute__ ((const)); @@ -35,10 +35,10 @@ foo2b(int n) /* Unbounded loops are not safe. */ static int __attribute__ ((noinline)) -foo3(int n) /* { dg-warning "const\[^\n\]* normally" "detect const candidate" } */ +foo3(unsigned int n) /* { dg-warning "const\[^\n\]* normally" "detect const candidate" } */ { int ret = 0; - int i; + unsigned int i; for (i=0; extern_const (i+n); n++) ret+=extern_const (i); return ret;