mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

when deserialized, fixing random crashes in libclang. Also simplifies how OpaqueValueExprs are [de]serialized. The reader/writer automatically retains pointer equality of sub-statements (when a statement node is referenced in multiple nodes), so no need to manually handle it. llvm-svn: 145752
17 lines
297 B
C++
17 lines
297 B
C++
struct S {
|
|
S();
|
|
S(int);
|
|
S(const S &);
|
|
~S();
|
|
};
|
|
|
|
void f() {
|
|
try {
|
|
} catch (S e) {
|
|
}
|
|
}
|
|
|
|
// RUN: c-index-test -write-pch %t.pch %s
|
|
// RUN: c-index-test -test-load-tu-usrs %t.pch local | FileCheck %s
|
|
// CHECK: pch-opaque-value.cpp c:pch-opaque-value.cpp@86@F@f#@e Extent=[10:12 - 10:15]
|