summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr41679.c
blob: 5ca565a62250686874eec5e87d4c3e545cd898f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-march=armv5te -g -O2" } */
/* { dg-prune-output "switch .* conflicts with" } */

extern int a;
extern char b;
extern int foo (void);

void
test (void)
{
  int c;
  b = foo () ? '~' : '\0';
  while ((c = foo ()))
    if (c == '7')
      a = 0;
}