aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtin-stdc-rotate-3.c
blob: 6eac145d205a41284946f26801a40ff89334a5db (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-funsigned-char" } */

void
foo (void)
{
  __builtin_stdc_rotate_left ((char) 0, 0);			/* { dg-error "argument 1 in call to function '__builtin_stdc_rotate_left' has 'char' type" } */
  __builtin_stdc_rotate_right ((char) 0, 0);			/* { dg-error "argument 1 in call to function '__builtin_stdc_rotate_right' has 'char' type" } */
}