-include <file> does not respect -I<path>

$ touch test.c
$ mkdir headers
$ touch headers/test.h
$ gcc -c test.c -I./headers -include test.h
$ clang -c test.c -I./headers -include test.h
In file included from <built-in>:103:
<command line>:1:10: fatal error: '/Users/rp/test.h' file not found
#include "/Users/rp/test.h"
          ^

$ clang --version
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 69762)
Target: i386-apple-darwin9

Robert P.

Hi Robert,

Thanks for the report. We have this filed as PR3992:
http://llvm.org/bugs/show_bug.cgi?id=3992

I added a workaround which fixes this particular problem here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090420/016073.html