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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [combine.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do assemble { target fpic } }
2
// { dg-options "-O2 -fweb -fPIC -fvisibility=hidden" }
3
// { dg-require-visibility "" }
4
 
5
class QBasicAtomicInt
6
{
7
public:
8
  volatile int _q_value;
9
  inline operator int () const {return _q_value;}
10
};
11
class QVariant;
12
class QScriptContext;
13
class QScriptEngine;
14
class QScriptValue
15
{
16
public:
17
  QVariant toVariant () const;
18
};
19
class QScriptDebuggerBackendPrivate
20
{
21
  static QScriptValue trace (QScriptContext *context);
22
};
23
template  struct QMetaTypeId { };
24
template  struct QMetaTypeId2
25
{
26
  static inline int qt_metatype_id ()
27
  {
28
    return QMetaTypeId::qt_metatype_id () ;
29
  }
30
};
31
template  inline int qMetaTypeId (T * = 0)
32
{
33
  return QMetaTypeId2::qt_metatype_id () ;
34
}
35
class QVariant { };
36
template inline T qvariant_cast (const QVariant &v)
37
{
38
  const int vid = qMetaTypeId ((0)) ;
39
};
40
class QScriptContext
41
{
42
public:
43
  QScriptValue callee () const;
44
};
45
class QScriptEngine
46
{
47
public:
48
  static bool convertV2 (const QScriptValue &value , int type , void *ptr) ;
49
};
50
inline bool qscriptvalue_cast_helper (const QScriptValue &value , int type , void *ptr)
51
{
52
  return QScriptEngine::convertV2 (value, type, ptr) ;
53
}
54
template T qscriptvalue_cast (const QScriptValue &value)
55
{
56
  T t;
57
  const int id = qMetaTypeId () ;
58
  if ( qscriptvalue_cast_helper (value, id, &t))
59
    return qvariant_cast (value.toVariant ()) ;
60
}
61
template <> struct QMetaTypeId< QScriptDebuggerBackendPrivate* >
62
{
63
  static int qt_metatype_id ()
64
  {
65
    static QBasicAtomicInt metatype_id = { (0) };
66
    return metatype_id;
67
  }
68
};
69
QScriptValue QScriptDebuggerBackendPrivate::trace (QScriptContext *context)
70
{
71
  QScriptValue data = context->callee () ;
72
  QScriptDebuggerBackendPrivate *self = qscriptvalue_cast (data) ;
73
}

powered by: WebSVN 2.1.0

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