File: type-quals.test

package info (click to toggle)
llvm-toolchain-9 1%3A9.0.1-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 882,436 kB
  • sloc: cpp: 4,167,636; ansic: 714,256; asm: 457,610; python: 155,927; objc: 65,094; sh: 42,856; lisp: 26,908; perl: 7,786; pascal: 7,722; makefile: 6,881; ml: 5,581; awk: 3,648; cs: 2,027; xml: 888; javascript: 381; ruby: 156
file content (39 lines) | stat: -rw-r--r-- 2,544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
REQUIRES: system-windows, msvc
RUN: %build --compiler=clang-cl --mode=compile --arch=32 --nodefaultlib --output=%T/TypeQualsTest.cpp.obj %S/Inputs/TypeQualsTest.cpp
RUN: %build --compiler=msvc --mode=link --arch=32 --nodefaultlib --output=%T/TypeQualsTest.cpp.exe %T/TypeQualsTest.cpp.obj
RUN: lldb-test symbols %T/TypeQualsTest.cpp.exe | FileCheck %s

CHECK: Module [[MOD:.*]]
CHECK-DAG: {{^[0-9A-F]+}}: SymbolVendor pdb ([[MOD]])
CHECK-DAG:      Type{{.*}} , name = "const int", size = 4, compiler_type = {{.*}} const int
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} const int *
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} const int **const
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} const int *const
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} const int *const *
CHECK-DAG:      Type{{.*}} , name = "Func1", {{.*}}, compiler_type = {{.*}} void (const int *, const int *, const int **const, const int *const *)

CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} volatile int *
CHECK-DAG:      Type{{.*}} , name = "Func2", {{.*}}, compiler_type = {{.*}} void (volatile int *, volatile int *)

CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int *
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int *&
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int &&
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int &
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} const int &
CHECK-DAG:      Type{{.*}} , name = "Func3", {{.*}}, compiler_type = {{.*}} void (int *&, int &, const int &, int &&)

// FIXME: __unaligned is not supported.
CHECK-DAG:      Type{{.*}} , name = "Func4", {{.*}}, compiler_type = {{.*}} void (int *, int *)

CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int *__restrict
CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} int &__restrict
CHECK-DAG:      Type{{.*}} , name = "Func5", {{.*}}, compiler_type = {{.*}} void (int, int *__restrict, int &__restrict)

CHECK-DAG:      Type{{.*}} , name = "Func6", {{.*}}, compiler_type = {{.*}} void (const volatile int *__restrict)

CHECK-DAG:      Type{{.*}} , size = 400, compiler_type = {{.*}} volatile int *[100]
CHECK-DAG:      Type{{.*}} , size = 4000, compiler_type = {{.*}} volatile int *[10][100]

CHECK-DAG:      Type{{.*}} , size = 4, compiler_type = {{.*}} long *__restrict

CHECK-DAG: {{^[0-9A-F]+}}:   CompileUnit{{[{]0x[0-9a-f]+[}]}}, language = "c++", file = '{{.*}}\TypeQualsTest.cpp'