URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [obj-c++.dg/] [encode-2.mm] - Rev 329
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do assemble } */
/* { dg-options "-save-temps" } */
template <class T>
struct Vec {
T x, y;
int z;
};
typedef struct {
Vec<double> dvec;
Vec<float> fvec;
float fscalar;
double dscalar;
Vec<signed char> chVec;
int iscalar;
} anonymous;
Vec<double> dd;
const char *enc = @encode(Vec<float>);
const char *enc2 = @encode(Vec<double>);
const char *enc3 = @encode(anonymous);
/* { dg-final { scan-assembler "{Vec<float>=ffi}" } } */
/* { dg-final { scan-assembler "{Vec<double>=ddi}" } } */
/* { dg-final { scan-file "encode-2.o" "{?={Vec<double>=ddi}{Vec<float>=ffi}fd{Vec<signed char>=cci}i}" } }
/* { dg-final cleanup-saved-temps } */
Go to most recent revision | Compare with Previous | Blame | View Log