Navigation Menu

Skip to content

Commit

Permalink
Test case for PCH not working with GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
scraft committed Aug 3, 2010
1 parent 93a2909 commit bdb07ef
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/precompiled_header_deps/GenerateWorkSpaceVs2005.bat
@@ -0,0 +1,9 @@
@ECHO OFF
PUSHD %~dp0
jam --workspace -gen=vs2005 -compiler=vs2005 -config=GenerateWorkSpaceVs2005.config Source/Jamfile.jam Build
if "%ERRORLEVEL%" == "0" (
ECHO %~dp0Build\_workspace.vs2005_\precompiled_header_deps.sln > %~dp0\EditWorkSpaceVs2005.bat
) else (
pause
)
POPD
5 changes: 5 additions & 0 deletions tests/precompiled_header_deps/GenerateWorkSpaceVs2005.config
@@ -0,0 +1,5 @@
Config =
{
Platforms = { 'win32', 'ps3' },
Configurations = { 'debug' }
}
14 changes: 14 additions & 0 deletions tests/precompiled_header_deps/Source/Jamfile.jam
@@ -0,0 +1,14 @@
PRECOMPILED_HEADER_DEPS_SRCS =
main.cpp
system.h
;

PRECOMPILED_HEADER_DEPS_PCH_SRCS =
pch.cpp
pch.h
;

C.PrecompiledHeader precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) : $(PRECOMPILED_HEADER_DEPS_SRCS) ;
AutoSourceGroup precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_SRCS) $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) ;

C.Application precompiled_header_deps : $(PRECOMPILED_HEADER_DEPS_SRCS) $(PRECOMPILED_HEADER_DEPS_PCH_SRCS) ;
5 changes: 5 additions & 0 deletions tests/precompiled_header_deps/Source/main.cpp
@@ -0,0 +1,5 @@
int main( )
{

return SystemAdd( 1, 2 );
}
1 change: 1 addition & 0 deletions tests/precompiled_header_deps/Source/pch.cpp
@@ -0,0 +1 @@
#include "pch.h"
1 change: 1 addition & 0 deletions tests/precompiled_header_deps/Source/pch.h
@@ -0,0 +1 @@
#include "system.h"
6 changes: 6 additions & 0 deletions tests/precompiled_header_deps/Source/system.h
@@ -0,0 +1,6 @@
#ifndef __SYSTEM_H__
#define __SYSTEM_H__

static inline int SystemAdd( int a, int b ) { return a + b; }

#endif

0 comments on commit bdb07ef

Please sign in to comment.