summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nofixed-point-2.c
blob: 5b2f209501889b502512e8f408fed28b99d93e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* PR inline-asm/39059 */
/* { dg-do compile { target {! fixed_point} } } */
/* { dg-options "-std=gnu99" } */

void
f1 (void)
{
  asm ("" : : "r" (0r));       /* { dg-error "not supported" "reject fixed-point" } */
}

__typeof (0r)		       /* { dg-error "not supported" "reject fixed-point" } */
b2 (void)		       /* { dg-bogus "defaults to" } */
{
  return 0r;		       /* { dg-error "not supported" "reject fixed-point" } */
}

_Accum			       /* { dg-error "not supported" "reject fixed-point" } */
f3 (void)
{
  return 0k;			/* { dg-error "not supported" "reject fixed-point" } */
}

_Sat
f4 (void)			/* { dg-error "not supported" "reject fixed-point" } */
{
  return 0k;			/* { dg-error "not supported" "reject fixed-point" } */
}

/* { dg-error "is used without" "" { target *-*-* } 24 } */