Ticket #14321: test.cpp

File test.cpp, 315 bytes (added by waddlesplash, 15 months ago)
Line 
1#include <KernelKit.h>
2#include <stdio.h>
3
4int main(int argc, char* argv[])
5{
6 struct FlagParser {
7 const char* flags;
8
9 FlagParser()
10 :
11 flags(NULL)
12 {
13 }
14
15 virtual void operator()()
16 {
17 debugger("help!");
18 flags = "Got here.";
19 }
20 } flagParser;
21 flagParser();
22 puts(flagParser.flags);
23 return 0;
24}