Skip to content

Commit

Permalink
Add test for fscanf
Browse files Browse the repository at this point in the history
  • Loading branch information
schuessf committed Feb 21, 2023
1 parent a316684 commit cc15813
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions trunk/examples/programs/regression/c/fscanf.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//#Unsafe
/*
Author: Frank Schüssele ([email protected])
Date: 2023-02-21
*/
#include <stdio.h>

int main() {
int x;
int r = scanf("%d", &x);
//@ assert r == 1 || x == 0;
}

0 comments on commit cc15813

Please sign in to comment.