summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nofixed-point-2.c
blob: 97bbf70225c89ab1e428910123616f4121f3a5a9 (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
30
/* 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)
{
  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-warning "defaults to" "" { target *-*-* } 13 } */
/* { dg-error "is used without" "" { target *-*-* } 24 } */