79 lines · c
1// RUN: %clang -target armv6t2-eabi -### %s 2>&1 \2// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY3 4// RUN: %clang -target armv6t2-eabi -### -mexecute-only %s 2>&1 \5// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY6 7// RUN: %clang -target armv6t2-eabi -### -mexecute-only -mno-execute-only %s 2>&1 \8// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY9 10// RUN: %clang -target armv7m-eabi -### %s 2>&1 \11// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY12 13// RUN: %clang -target armv7m-eabi -### -mexecute-only %s 2>&1 \14// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY15 16// RUN: %clang -target armv7m-eabi -### -mexecute-only -mno-execute-only %s 2>&1 \17// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY18 19// RUN: %clang -target armv8m.base-eabi -### %s 2>&1 \20// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY21 22// RUN: %clang -target armv8m.base-eabi -### -mexecute-only %s 2>&1 \23// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY24 25// RUN: %clang -target armv8m.base-eabi -### -mexecute-only -mno-execute-only %s 2>&1 \26// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY27 28// RUN: %clang -target armv8m.main-eabi -### %s 2>&1 \29// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY30 31// RUN: %clang -target armv8m.main-eabi -### -mexecute-only %s 2>&1 \32// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY33 34// RUN: %clang -target armv8m.main-eabi -### -mexecute-only -mno-execute-only %s 2>&1 \35// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY36 37 38// -mpure-code flag for GCC compatibility39// RUN: %clang -target armv6t2-eabi -### %s 2>&1 \40// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY41 42// RUN: %clang -target armv6t2-eabi -### -mpure-code %s 2>&1 \43// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY44 45// RUN: %clang -target armv6t2-eabi -### -mpure-code -mno-pure-code %s 2>&1 \46// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY47 48// RUN: %clang -target armv7m-eabi -### %s 2>&1 \49// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY50 51// RUN: %clang -target armv7m-eabi -### -mpure-code %s 2>&1 \52// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY53 54// RUN: %clang -target armv7m-eabi -### -mpure-code -mno-pure-code %s 2>&1 \55// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY56 57// RUN: %clang -target armv8m.base-eabi -### %s 2>&1 \58// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY59 60// RUN: %clang -target armv8m.base-eabi -### -mpure-code %s 2>&1 \61// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY62 63// RUN: %clang -target armv8m.base-eabi -### -mpure-code -mno-pure-code %s 2>&1 \64// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY65 66// RUN: %clang -target armv8m.main-eabi -### %s 2>&1 \67// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY68 69// RUN: %clang -target armv8m.main-eabi -### -mpure-code %s 2>&1 \70// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY71 72// RUN: %clang -target armv8m.main-eabi -### -mpure-code -mno-pure-code %s 2>&1 \73// RUN: | FileCheck %s -check-prefix CHECK-NO-EXECUTE-ONLY74 75// CHECK-NO-EXECUTE-ONLY-NOT: "+execute-only"76// CHECK-EXECUTE-ONLY: "+execute-only"77 78void a() {}79