1
0
Fork 0
gcc_bug
root 2015-01-10 14:42:17 +00:00
parent 2e9e06fc07
commit bca6a6a033
2 changed files with 16 additions and 1 deletions

View File

@ -34,7 +34,7 @@ BINDIR = $(PREFIX)/bin
PGOBENCH = ./$(EXE) bench 16 1 1 default time
### Object files
OBJS = bitboard.o
OBJS = test.o
### ==========================================================================
### Section 2. High-level Configuration

15
src/test.cpp 100644
View File

@ -0,0 +1,15 @@
int A[8];
int B[8];
int C;
int main() {
for (int f = 0; f <= 7; ++f)
A[f] = f;
for (int f = 0; f <= 7; ++f)
B[f] = (f > 0 ? A[f - 1] : 0) | (f < 7 ? A[f + 1] : 0);
C = B[7];
}