Oliver Stannard | 692dc54 | 2017-04-18 13:21:05 +0000 | [diff] [blame] | 1 | // Enabled by default for assembly |
| 2 | // RUN: %clang -target armv7--none-eabi -### %s 2>&1 \ |
| 3 | // RUN: | FileCheck %s -check-prefix CHECK-ENABLED |
| 4 | |
| 5 | // Can be forced on or off for assembly. |
| 6 | // RUN: %clang -target armv7--none-eabi -### %s 2>&1 -mno-default-build-attributes \ |
| 7 | // RUN: | FileCheck %s -check-prefix CHECK-DISABLED |
| 8 | // RUN: %clang -target armv7--none-eabi -### %s 2>&1 -mdefault-build-attributes \ |
| 9 | // RUN: | FileCheck %s -check-prefix CHECK-ENABLED |
| 10 | |
| 11 | // Option ignored C/C++ (since we always emit hardware and ABI build attributes |
| 12 | // during codegen). |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 13 | // RUN: %clang -target armv7--none-eabi -### -x c %s -mdefault-build-attributes 2>&1 \ |
Oliver Stannard | 692dc54 | 2017-04-18 13:21:05 +0000 | [diff] [blame] | 14 | // RUN: | FileCheck %s -check-prefix CHECK-DISABLED |
Serge Pavlov | b43573b | 2017-05-24 14:57:17 +0000 | [diff] [blame] | 15 | // RUN: %clang -target armv7--none-eabi -### -x c++ %s -mdefault-build-attributes 2>&1 \ |
Oliver Stannard | 692dc54 | 2017-04-18 13:21:05 +0000 | [diff] [blame] | 16 | // RUN: | FileCheck %s -check-prefix CHECK-DISABLED |
| 17 | |
| 18 | // CHECK-DISABLED-NOT: "-arm-add-build-attributes" |
| 19 | // CHECK-ENABLED: "-arm-add-build-attributes" |
| 20 | // expected-warning {{argument unused during compilation: '-mno-default-build-attributes'}} |