Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C

Compiler

clang HEAD 16.0.0 (https://github.com/llvm/llvm-project.git f74833e38191f35dae990930a0518d3e3ec9e69c)

Options
Warnings
C99
-pedantic
Raw compiler options
-Xclang -ast-dump -Xclang -ast-dump-filter -Xclang main -fsyntax-only
Raw runtime options

Author

anonymous

over 3 years ago

$ clang prog.c -Wall -Wextra -std=c99 -pedantic -Xclang -ast-dump -Xclang -ast-dump-filter -Xclang main -fsyntax-only
prog.c:3:5: warning: expression result unused [-Wunused-value]
    a;
    ^
prog.c:3:5: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
    a;
    ^
prog.c:2:19: note: initialize the variable 'a' to silence this warning
    register int a;
                  ^
                   = 0
2 warnings generated.
Dumping main:
FunctionDecl 0x91f5520 <prog.c:1:1, line:4:1> line:1:5 main 'int (void)'
`-CompoundStmt 0x91f5710 <col:16, line:4:1>
  |-DeclStmt 0x91f56c0 <line:2:5, col:19>
  | `-VarDecl 0x91f5658 <col:5, col:18> col:18 used a 'int' register
  `-ImplicitCastExpr 0x91f56f8 <line:3:5> 'int' <LValueToRValue>
    `-DeclRefExpr 0x91f56d8 <col:5> 'int' lvalue Var 0x91f5658 'a' 'int'

execve: No such file or directory
Exit Code:
1