aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libmudflap/testsuite/libmudflap.c/pass47-frag.c
blob: 71175827209f9521415057ab5ace9f76cf66c4de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <ctype.h>

int main ()
{
  char* buf = "hello"; 
  return ! ((toupper (buf[0]) == 'H' && toupper ('z') == 'Z' &&
             tolower (buf[4]) == 'o' && tolower ('X') == 'x' &&
             isdigit (buf[3])) == 0 && isalnum ('4'));
}

/* { dg-warning "cannot track unknown size extern .__ctype." "Solaris __ctype declared without size" { target *-*-solaris2.* } 0 } */