ffi-clang

FORK: Ruby FFI bindings for my custom patched clang 8.0.
git clone https://git.neptards.moe/neptards/ffi-clang.git
Log | Files | Refs | README

docs.cpp (506B)


      1 
      2 /** A test class which does nothing.
      3 
      4 	This is used by `main`.
      5 */
      6 template<typename T>
      7 class Test {};
      8 
      9 /// This is a specialization for integers.
     10 template<>
     11 class Test<int> {
     12 public:
     13 	/// The number of times it has been incremented.
     14 	int count;
     15 	
     16 };
     17 
     18 /// This always fails.
     19 /// @param argc The number of items in `argv`. At least 1.
     20 /// @param argv The command line arguments, with argv[0] being the command used to execute this program.
     21 int main(int argc, char ** argv) {
     22 	Test<int> test;
     23 	
     24 	return 1;
     25 }