primitive locals
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include <unistd.h>
|
||||
#include <string>
|
||||
|
||||
uint32_t my_glob = 42;
|
||||
|
||||
namespace test {
|
||||
enum MyEnum : uint16_t {
|
||||
ENUM_VAL1 = 10,
|
||||
@@ -20,6 +22,8 @@ namespace test {
|
||||
void helper_fn() {
|
||||
test::MyType tmp = test::MyType{1};
|
||||
std::string test = "Hello World";
|
||||
uint32_t x = 25;
|
||||
unsigned int y = 30;
|
||||
sleep(tmp.data);
|
||||
{
|
||||
test::MyType tmp = test::MyType{2};
|
||||
|
||||
Reference in New Issue
Block a user