| Momchil Velikov | 080d046 | 2020-03-24 09:32:51 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple thumbv8m.base-none-eabi -mcmse -verify %s |
| 2 | |||||
| 3 | extern "C" void foo() __attribute__((cmse_nonsecure_entry)) {} | ||||
| 4 | |||||
| 5 | void bar() __attribute__((cmse_nonsecure_entry)) {} // expected-error{{function type with 'cmse_nonsecure_entry' attribute must have C linkage}} | ||||