forked from OSchip/llvm-project
58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
# RUN: lld-core %s | FileCheck %s
|
|
|
|
#
|
|
# Test permissions for known content types are implicit, but can be overridden.
|
|
#
|
|
---
|
|
defined-atoms:
|
|
- name: one
|
|
type: code
|
|
|
|
- name: two
|
|
type: data
|
|
permissions: rw-
|
|
|
|
- name: three
|
|
type: const-data
|
|
|
|
- name: four
|
|
type: unknown
|
|
|
|
- name: oddCode
|
|
type: code
|
|
permissions: rwx
|
|
|
|
- name: oddData
|
|
type: data
|
|
permissions: rwx
|
|
|
|
- name: oddConstData
|
|
type: const-data
|
|
permissions: rw-
|
|
|
|
- name: oddUnknown
|
|
type: unknown
|
|
permissions: rw-
|
|
|
|
...
|
|
|
|
# CHECK: ---
|
|
# CHECK: defined-atoms:
|
|
# CHECK: - name: one
|
|
# CHECK-NOT: permissions:
|
|
# CHECK: - name: two
|
|
# CHECK-NOT: permissions:
|
|
# CHECK: - name: three
|
|
# CHECK-NOT: permissions:
|
|
# CHECK: - name: four
|
|
# CHECK-NOT: permissions:
|
|
# CHECK: - name: oddCode
|
|
# CHECK: permissions: rwx
|
|
# CHECK: - name: oddData
|
|
# CHECK: permissions: rwx
|
|
# CHECK: - name: oddConstData
|
|
# CHECK: permissions: rw-
|
|
# CHECK: - name: oddUnknown
|
|
# CHECK: permissions: rw-
|
|
# CHECK: ...
|