VirtualBox

source: vbox/trunk/src/bldprogs/test-gccplugin-2.c@ 59410

Last change on this file since 59410 was 57072, checked in by vboxsync, 9 years ago

gccplugin: gcc grokking in progress.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 475 bytes
Line 
1/* Only valid stuff in this one. */
2extern void MyIprtPrintf(const char *pszFormat, ...) __attribute__((__iprt_format__(1,2)));
3extern void foo(void);
4
5extern unsigned long long g_ull;
6
7typedef unsigned long long RTGCPHYS;
8extern RTGCPHYS g_GCPhys;
9
10typedef RTGCPHYS *PRTGCPHYS;
11extern PRTGCPHYS g_pGCPhys;
12
13void foo(void)
14{
15 MyIprtPrintf("%s %RX64 %RGp %p %RGp", "foobar", g_ull, g_GCPhys, g_pGCPhys, *g_pGCPhys);
16 MyIprtPrintf("%RX32 %d %s\n", 10, 42, "string");
17}
18
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette