1 // RUN: %clang -### -target avr -no-canonical-prefixes -save-temps %s 2>&1 | FileCheck --check-prefix=WARN %s
2 // RUN: %clang -### -target avr -no-canonical-prefixes -save-temps -mmcu=atmega328 %s 2>&1 | FileCheck --check-prefix=NOWARN %s
3
4 // WARN: warning: no target microcontroller specified on command line, cannot link standard libraries, please pass -mmcu=<mcu name>
5 // WARN: warning: standard library not linked and so no interrupt vector table or compiler runtime routines will be linked
6
7 // NOWARN: main
8
main()9 int main() { return 0; }
10
11