summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/avr-link-no-mcu-specified.c
blob: 1c77099ebad98120d2594a94de4d0d6b8871b2a8 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang -### -target avr -no-canonical-prefixes -save-temps %s 2>&1 | FileCheck --check-prefix=WARN %s
// RUN: %clang -### -target avr -no-canonical-prefixes -save-temps -mmcu=atmega328 %s 2>&1 | FileCheck --check-prefix=NOWARN %s

// WARN: warning: no target microcontroller specified on command line, cannot link standard libraries, please pass -mmcu=<mcu name>
// WARN: warning: standard library not linked and so no interrupt vector table or compiler runtime routines will be linked

// NOWARN: main

int main() { return 0; }

OpenPOWER on IntegriCloud