summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/ubsan/attrib-5.c
blob: 209b5dd7d2b96fcd02b9ea60f933f39284cdf866 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fsanitize=undefined" } */

__attribute__((no_sanitize("foobar")))
static void
float_cast2 (void) { /* { dg-warning "attribute directive ignored" } */
  volatile double d = 300;
  volatile signed char c;
  c = d;
}