diff options
Diffstat (limited to 'test/ASTMerge/class/test.cpp')
-rw-r--r-- | test/ASTMerge/class/test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ASTMerge/class/test.cpp b/test/ASTMerge/class/test.cpp index a68a2d1d7690f..ba553af40720f 100644 --- a/test/ASTMerge/class/test.cpp +++ b/test/ASTMerge/class/test.cpp @@ -12,3 +12,13 @@ // CHECK: class1.cpp:18:6: warning: type 'E' has incompatible definitions in different translation units // CHECK: class1.cpp:19:3: note: enumerator 'b' with value 1 here // CHECK: class2.cpp:12:3: note: enumerator 'a' with value 0 here + +// CHECK: class1.cpp:43:8: warning: type 'F3' has incompatible definitions in different translation units +// CHECK: class1.cpp:46:3: note: friend declared here +// CHECK: class2.cpp:36:8: note: no corresponding friend here + +// CHECK: class1.cpp:36:8: warning: type 'F2' has incompatible definitions in different translation units +// CHECK: class1.cpp:39:3: note: friend declared here +// CHECK: class2.cpp:30:8: note: no corresponding friend here + +// CHECK: 4 warnings generated. |