fork download
  1. extern char some_string[] = "foo";
  2.  
  3. #include <iostream>
  4.  
  5. template <char const* S>
  6. void f() {
  7. std::cout << S;
  8. }
  9.  
  10. int main() {
  11. f<some_string>();
  12. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
foo