blob: ed89ff9188cbe4f81ddfbfd0e8a061843ce28a5f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-cddce1" } */
int
fn1 (_Bool a)
{
return ((int) a) | ((int) ~a);
}
int
fn2 (unsigned char a)
{
return ((int) a) | ((int) ~a);
}
int
fn3 (unsigned short a)
{
return ((int) a) | ((int) ~a);
}
int
fn4 (signed char a)
{
return ((int) a) | ((int) ~a);
}
int
fn5 (signed short a)
{
return ((int) a) | ((int) ~a);
}
/* { dg-final { scan-tree-dump-not "~" "cddce1" } } */
/* { dg-final { scan-tree-dump-not " \\| " "cddce1" } } */