1 // RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl -cl-no-stdinc | FileCheck --strict-whitespace %s
3 #pragma OPENCL EXTENSION all : disable
4 #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
5 #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
8 // CHECK-NEXT: - Callback: PragmaDirective
9 // CHECK-NEXT: Loc: "<built-in>:{{.+}}:1"
10 // CHECK-NEXT: Introducer: PIK_HashPragma
11 // CHECK-NEXT: - Callback: PragmaDirective
12 // CHECK-NEXT: Loc: "<built-in>:{{.+}}:1"
13 // CHECK-NEXT: Introducer: PIK_HashPragma
14 // CHECK-NEXT: - Callback: PragmaDirective
15 // CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:1"
16 // CHECK-NEXT: Introducer: PIK_HashPragma
17 // CHECK-NEXT: - Callback: PragmaOpenCLExtension
18 // CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:26"
19 // CHECK-NEXT: Name: all
20 // CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:32"
21 // CHECK-NEXT: State: 0
22 // CHECK-NEXT: - Callback: PragmaDirective
23 // CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:1"
24 // CHECK-NEXT: Introducer: PIK_HashPragma
25 // CHECK-NEXT: - Callback: PragmaOpenCLExtension
26 // CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:26"
27 // CHECK-NEXT: Name: cl_khr_int64_base_atomics
28 // CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:54"
29 // CHECK-NEXT: State: 0
30 // CHECK-NEXT: - Callback: PragmaDirective
31 // CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:1"
32 // CHECK-NEXT: Introducer: PIK_HashPragma
33 // CHECK-NEXT: - Callback: PragmaOpenCLExtension
34 // CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:26"
35 // CHECK-NEXT: Name: cl_khr_int64_base_atomics
36 // CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:54"
37 // CHECK-NEXT: State: 1
38 // CHECK-NEXT: - Callback: EndOfMainFile