Douglas Gregor | ecc2c09 | 2011-12-01 22:20:10 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -Eonly -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/submodules %s -verify |
| 3 | |
| 4 | __import_module__ std.vector; |
| 5 | |
| 6 | vector<int> vi; |
| 7 | remove_reference<int&>::type *int_ptr = 0; |
| 8 | |
| 9 | __import_module__ std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}} |
| 10 | |
| 11 | vector<float> vf; |
| 12 | remove_reference<int&>::type *int_ptr2 = 0; |
| 13 | |
| 14 | __import_module__ std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}} |