2021-02-22 22:22:02 +08:00
|
|
|
// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl -cl-no-stdinc | FileCheck --strict-whitespace %s
|
2013-11-14 08:18:19 +08:00
|
|
|
|
|
|
|
#pragma OPENCL EXTENSION all : disable
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
|
|
|
|
|
|
|
|
// CHECK: ---
|
|
|
|
// CHECK-NEXT: - Callback: PragmaDirective
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:1"
|
|
|
|
// CHECK-NEXT: Introducer: PIK_HashPragma
|
|
|
|
// CHECK-NEXT: - Callback: PragmaOpenCLExtension
|
|
|
|
// CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:26"
|
|
|
|
// CHECK-NEXT: Name: all
|
|
|
|
// CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:3:32"
|
|
|
|
// CHECK-NEXT: State: 0
|
|
|
|
// CHECK-NEXT: - Callback: PragmaDirective
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:1"
|
|
|
|
// CHECK-NEXT: Introducer: PIK_HashPragma
|
|
|
|
// CHECK-NEXT: - Callback: PragmaOpenCLExtension
|
|
|
|
// CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:26"
|
|
|
|
// CHECK-NEXT: Name: cl_khr_int64_base_atomics
|
|
|
|
// CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:4:54"
|
|
|
|
// CHECK-NEXT: State: 0
|
|
|
|
// CHECK-NEXT: - Callback: PragmaDirective
|
|
|
|
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:1"
|
|
|
|
// CHECK-NEXT: Introducer: PIK_HashPragma
|
|
|
|
// CHECK-NEXT: - Callback: PragmaOpenCLExtension
|
|
|
|
// CHECK-NEXT: NameLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:26"
|
|
|
|
// CHECK-NEXT: Name: cl_khr_int64_base_atomics
|
|
|
|
// CHECK-NEXT: StateLoc: "{{.*}}{{[/\\]}}pp-trace-pragma-opencl.cpp:5:54"
|
|
|
|
// CHECK-NEXT: State: 1
|
|
|
|
// CHECK-NEXT: - Callback: EndOfMainFile
|
|
|
|
// CHECK-NEXT: ...
|