initial commit
This commit is contained in:
19
third_party/libhv/unittest/defer_test.cpp
vendored
Executable file
19
third_party/libhv/unittest/defer_test.cpp
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "hscope.h"
|
||||
|
||||
int main() {
|
||||
defer (
|
||||
printf("1\n");
|
||||
printf("2\n");
|
||||
)
|
||||
|
||||
defer (
|
||||
printf("3\n");
|
||||
printf("4\n");
|
||||
)
|
||||
|
||||
defer(printf("hello\n");)
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user