annotate clang/test/PCH/pr27445.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
1 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-windows-msvc -fms-extensions -x c++ %S/Inputs/pr27445.h -emit-pch -o %t.pch
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
2 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-windows-msvc -fms-extensions %s -include-pch %t.pch -emit-llvm -o - | FileCheck %s
150
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 class A;
anatofuz
parents:
diff changeset
5 void fn1(A &) {}
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 class __declspec(dllexport) A {
anatofuz
parents:
diff changeset
8 int operator=(A) { return field_; }
anatofuz
parents:
diff changeset
9 void (*on_arena_allocation_)(Info);
anatofuz
parents:
diff changeset
10 int field_;
anatofuz
parents:
diff changeset
11 };
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // CHECK: %class.A = type { void (%struct.Info*)*, i32 }
anatofuz
parents:
diff changeset
14 // CHECK: %struct.Info = type { i32 (...)** }