Add support for cpp files with test examples

Fix https://github.com/clearlinux/make-fmv-patch/issues/2

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This commit is contained in:
Victor Rodriguez
2018-11-26 03:52:39 -06:00
parent ab5254661a
commit 09c11cfc2f
5 changed files with 88 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#define MAX 1000000
static struct timeval tm1;
int a[256], b[256], c[256];
void foo();
int main(){
foo();
return 0;
}
void foo(){
int i,x;
for (x=0; x<MAX; x++){
for (i=0; i<256; i++){
a[i] = b[i] + c[i];
}
}
}