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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [const3.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR middle-end/44101
2
// { dg-do compile }
3
 
4
extern bool equal (int[], int[], const int[]);
5
extern bool equal (wchar_t[], wchar_t[], const wchar_t[]);
6
 
7
void foo(void)
8
{
9
  const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3};
10
  const int N1 = sizeof(A1) / sizeof(int);
11
  int i1[N1];
12
 
13
  if (equal(i1, i1 + N1, A1))
14
    return;
15
 
16
  const wchar_t A3[] = {L'\3', L'\3', L'\3', L'\3', L'\3',
17
   L'\3', L'\3', L'\3', L'\3', L'\3'};
18
  const int N3 = sizeof(A3) / sizeof(wchar_t);
19
  wchar_t i3[N3];
20
 
21
  if (equal(i3, i3 + N3, A3))
22
    return;
23
}

powered by: WebSVN 2.1.0

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