Douglas Gregor | 94619c8 | 2011-08-24 19:03:07 +0000 | [diff] [blame] | 1 | |
2 | void test(int i, float f) { | ||||
3 | // unqualified lookup | ||||
4 | f0(&i); | ||||
5 | f0(&f); | ||||
6 | |||||
7 | // qualified lookup into the translation unit | ||||
8 | ::f0(&i); | ||||
9 | ::f0(&f); | ||||
10 | } | ||||
11 | |||||
12 | // RUN: %clang_cc1 -emit-pch -o %t_lookup_left.h.pch %S/Inputs/lookup_left.hpp | ||||
13 | // RUN: %clang_cc1 -emit-pch -o %t_lookup_right.h.pch %S/Inputs/lookup_right.hpp | ||||
14 | // RUN: %clang_cc1 -import-module %t_lookup_left.h.pch -import-module %t_lookup_right.h.pch -verify %s |