OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [simd4.C] - Blame information for rev 701

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/29734
2
// { dg-do compile }
3
// { dg-options "" }
4
 
5
int t;
6
float u;
7
int __attribute__((vector_size (8))) v;
8
float __attribute__((vector_size (8))) w;
9
int b[10];
10
 
11
void
12
foo ()
13
{
14
  b[t];
15
  b[u];         // { dg-error "invalid types" }
16
  b[v];         // { dg-error "invalid types" }
17
  b[w];         // { dg-error "invalid types" }
18
  t[b];
19
  u[b];         // { dg-error "invalid types" }
20
  v[b];         // { dg-error "invalid types" }
21
  w[b];         // { dg-error "invalid types" }
22
  new int[t];
23
  new int[u];   // { dg-error "new-declarator must have integral" }
24
  new int[v];   // { dg-error "new-declarator must have integral" }
25
  new int[w];   // { dg-error "new-declarator must have integral" }
26
  switch (t) { default: break; }
27
  switch (u) { default: break; }        // { dg-error "switch quantity not an integer" }
28
  switch (v) { default: break; }        // { dg-error "switch quantity not an integer" }
29
  switch (w) { default: break; }        // { dg-error "switch quantity not an integer" }
30
  t = ~t;
31
  u = ~u;       // { dg-error "wrong type argument to bit-complement" }
32
  v = ~v;
33
  w = ~w;       // { dg-error "wrong type argument to bit-complement" }
34
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.