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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-3.mm] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
 
3
#include 
4
#include 
5
 
6
template 
7
struct Vec {
8
 T x, y;
9
 long z;
10
 long long zz;
11
};
12
 
13
Vec dd;
14
const char *enc = @encode(Vec);
15
const char *enc2 = @encode(Vec);
16
 
17
#ifdef __LP64__
18
#define L "q"
19
#else
20
#define L "l"
21
#endif
22
 
23
int main(void) {
24
  const char *encode = @encode(long);
25
 
26
  if (strcmp (encode, L))
27
    abort();
28
 
29
  if (strcmp (enc, "{Vec=ff" L "q}"))
30
    abort();
31
 
32
  if (strcmp (enc2, "{Vec=dd" L "q}"))
33
    abort();
34
 
35
  return 0;
36
}

powered by: WebSVN 2.1.0

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