Closed thradams closed 2 months ago
it needs to show an warning.
#include <ownership.h> #include <stdio.h> int main() { int size = 10; if (FILE* owner f = fopen("file.txt", "r"); f) { /*...*/ //fclose(f); } }
#pragma safety enable #include <stdio.h> int main() { int size = 10; if (FILE* _Owner _Opt f = fopen("file.txt", "r"); f) { /*...*/ //fclose(f); } }
it needs to show an warning.