Skip to content

Commit

Permalink
bug(x86_64): static var cannot use
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Jun 5, 2024
1 parent 4cbf716 commit 2f1536c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/kernel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
#include "kernel.h"
#include "libcxx.h"

class aaa {
public:
aaa(uint32_t a) { ; }
~aaa() { ; }
};

static aaa AAA(0);

void _start(uint32_t argc, uint8_t* argv) {
CppInit();
main(argc, argv);
Expand Down

0 comments on commit 2f1536c

Please sign in to comment.