2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2013-01-09 09:17:12 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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: ...
|