fork(1) download
  1. #include <stdint.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. #define DEV_BASE 0x100002340
  6.  
  7. typedef struct {
  8. volatile uint32_t REG1;
  9. volatile uint32_t REG2;
  10. } Device;
  11.  
  12. #define DEV ((Device*)DEV_BASE)
  13.  
  14. template<typename Reg>
  15. struct Foo
  16. {
  17.  
  18. };
  19.  
  20. Foo<Device> foo;
  21.  
  22. int main() {
  23. // your code goes here
  24. return 0;
  25. }
Success #stdin #stdout 0s 4432KB
stdin
Standard input is empty
stdout
Standard output is empty