aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/ubsan/const-char-1.c
blob: 6c2c3f8c3aa6d02f88f234a07cde6b3772add66d (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-fsanitize=shift" } */

void
foo (void)
{
  int y = 1 << 2;
  __builtin_printf ("%d\n", y);
}