| // RUN: %clang_cc1 -emit-llvm %s -o - -triple i386-apple-macosx10.7.2 |
| typedef unsigned char PRUint8; |
| typedef unsigned int PRUint32; |
| typedef PRUint32 nsresult; |
| template < class T > struct nsCOMTypeInfo |
| static const nsIID & GetIID () |
| class nsIDOMEvent:public nsISupports |
| class nsIDOMEventListener:public nsISupports |
| public:static const nsIID & GetIID () |
| __attribute__ ((regparm (0), cdecl)) HandleEvent (nsIDOMEvent * event) = |
| class nsIDOMMouseListener:public nsIDOMEventListener |
| public:static const nsIID & GetIID () |
| static const nsIID iid = { |
| __attribute__ ((regparm (0), |
| cdecl)) MouseDown (nsIDOMEvent * aMouseEvent) = 0; |
| typeof (&nsIDOMEventListener::HandleEvent) |
| const EventDispatchData *events; |
| static const EventDispatchData sMouseEvents[] = { |
| reinterpret_cast < GenericHandler > (&nsIDOMMouseListener::MouseDown), |
| static const EventTypeData sEventTypes[] = { |
| sMouseEvents, (sizeof (sMouseEvents) / sizeof (sMouseEvents[0])), |
| &nsCOMTypeInfo < nsIDOMMouseListener >::GetIID ()} |